Fix crash on leaving room (#532)

This commit is contained in:
Ajay Bura 2022-05-11 20:25:54 +05:30
parent d04de2fba0
commit c11328a064

View file

@ -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,