1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Use a "normal" promise in order to .then

This commit is contained in:
Luke Barnard
2017-02-28 15:40:49 +00:00
parent 0ef8e2a8f4
commit a339316ede

View File

@ -278,7 +278,7 @@ export function setLoggedIn(credentials) {
credentials.homeserverUrl); credentials.homeserverUrl);
// Resolves by default // Resolves by default
let teamPromise = q(null); let teamPromise = Promise.resolve(null);
// persist the session // persist the session
if (localStorage) { if (localStorage) {