You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Merge pull request #1531 from matrix-org/dbkr/those_cached_promises_again
Fix stuck never-sending messages
This commit is contained in:
@@ -2638,7 +2638,10 @@ Crypto.prototype.trackRoomDevices = function(roomId) {
|
|||||||
let promise = this._roomDeviceTrackingState[roomId];
|
let promise = this._roomDeviceTrackingState[roomId];
|
||||||
if (!promise) {
|
if (!promise) {
|
||||||
promise = trackMembers();
|
promise = trackMembers();
|
||||||
this._roomDeviceTrackingState[roomId] = promise;
|
this._roomDeviceTrackingState[roomId] = promise.catch(err => {
|
||||||
|
this._roomDeviceTrackingState[roomId] = null;
|
||||||
|
throw err;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return promise;
|
return promise;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user