diff --git a/src/client/action/room.js b/src/client/action/room.js index bb96f99c..d945a89c 100644 --- a/src/client/action/room.js +++ b/src/client/action/room.js @@ -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,