mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-02 04:11:30 +02:00
Don't clobber the ready state if the sdk isn't ready yet
This commit is contained in:
parent
a3879b507a
commit
e5099ce3b7
@ -280,10 +280,10 @@ module.exports = {
|
|||||||
if (roomString[0] == '#') {
|
if (roomString[0] == '#') {
|
||||||
var self = this;
|
var self = this;
|
||||||
MatrixClientPeg.get().getRoomIdForAlias(roomString).done(function(result) {
|
MatrixClientPeg.get().getRoomIdForAlias(roomString).done(function(result) {
|
||||||
self.setState({ready: true});
|
if (self.sdkReady) self.setState({ready: true});
|
||||||
defer.resolve(result.room_id);
|
defer.resolve(result.room_id);
|
||||||
}, function() {
|
}, function() {
|
||||||
self.setState({ready: true});
|
if (self.sdkReady) self.setState({ready: true});
|
||||||
defer.resolve(null);
|
defer.resolve(null);
|
||||||
});
|
});
|
||||||
this.setState({ready: false});
|
this.setState({ready: false});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user