浏览代码

fix switching conversation titles

This reverts a change from a24f49c7

Before a24f49c7 in onDestroy() the disposables were not disposed. Instead this was "only" done in onComplete() of leaveRoom().
See a24f49c#diff-6b47d0e9875a7f7d5c1e6b80feab998e92d29b0cda8ac9bbf427aab99e56d209R1827
Because with a24f49c7 was now executed in onDestroy() , the leaveRoom() method is not executed successfully because it's destroyed too early. This results in multiple calls of getRoomInfo() with different roomTokens.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 2 年之前
父节点
当前提交
95f3d776db
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

+ 0 - 1
app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

@@ -1831,7 +1831,6 @@ class ChatController(args: Bundle) :
 
         adapter = null
         inConversation = false
-        disposables.dispose()
     }
 
     private fun joinRoomWithPassword() {