Remove forget room on leave
authorAjay Bura <ajbura@gmail.com>
Wed, 11 May 2022 15:23:21 +0000 (20:53 +0530)
committerAjay Bura <ajbura@gmail.com>
Wed, 11 May 2022 15:23:21 +0000 (20:53 +0530)
src/client/action/room.js

index d945a89c97e381e240ccb45666a8bd2dd94ac923..1fe721de6e17367471f86468bd5f313b71c922be 100644 (file)
@@ -118,9 +118,6 @@ async function leave(roomId) {
   const isDM = initMatrix.roomList.directs.has(roomId);
   try {
     await mx.leave(roomId);
-    setTimeout(() => {
-      mx.forget(roomId);
-    }, 5000);
     appDispatcher.dispatch({
       type: cons.actions.room.LEAVE,
       roomId,