Fix crash on leaving room (#532)
This commit is contained in:
@@ -118,7 +118,9 @@ async function leave(roomId) {
|
||||
const isDM = initMatrix.roomList.directs.has(roomId);
|
||||
try {
|
||||
await mx.leave(roomId);
|
||||
await mx.forget(roomId);
|
||||
setTimeout(() => {
|
||||
mx.forget(roomId);
|
||||
}, 5000);
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.room.LEAVE,
|
||||
roomId,
|
||||
|
||||
Reference in New Issue
Block a user