Fix crash on leaving room (#532)
This commit is contained in:
parent
d04de2fba0
commit
c11328a064
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ async function leave(roomId) {
|
||||||
const isDM = initMatrix.roomList.directs.has(roomId);
|
const isDM = initMatrix.roomList.directs.has(roomId);
|
||||||
try {
|
try {
|
||||||
await mx.leave(roomId);
|
await mx.leave(roomId);
|
||||||
await mx.forget(roomId);
|
setTimeout(() => {
|
||||||
|
mx.forget(roomId);
|
||||||
|
}, 5000);
|
||||||
appDispatcher.dispatch({
|
appDispatcher.dispatch({
|
||||||
type: cons.actions.room.LEAVE,
|
type: cons.actions.room.LEAVE,
|
||||||
roomId,
|
roomId,
|
||||||
|
|
Loading…
Reference in a new issue