Просмотр исходного кода

Fix #761

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 5 лет назад
Родитель
Сommit
b14f9990b4

+ 2 - 2
app/build.gradle

@@ -39,8 +39,8 @@ android {
         targetSdkVersion 28
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
 
-        versionCode 134
-        versionName "8.0.7"
+        versionCode 135
+        versionName "8.0.8"
 
         flavorDimensions "default"
         renderscriptTargetApi 19

+ 3 - 10
app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

@@ -333,8 +333,6 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
     }
 
     override fun onViewBound(view: View) {
-        super.onViewBound(view)
-
         actionBar?.show()
         var adapterWasNull = false
 
@@ -465,7 +463,6 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
 
         if (currentConversation != null && currentConversation?.roomId != null) {
             loadAvatarForStatusBar()
-            checkLobbyState()
             setTitle()
         }
 
@@ -473,8 +470,11 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
             // we're starting
             if (TextUtils.isEmpty(roomToken)) {
                 handleFromNotification()
+            } else {
+                getRoomInfo()
             }
         }
+        super.onViewBound(view)
     }
 
 
@@ -541,13 +541,6 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
             lobbyView?.visibility = View.GONE
             messagesListView?.visibility = View.VISIBLE
             messageInput?.visibility = View.VISIBLE
-            if (isFirstMessagesProcessing && pastPreconditionFailed) {
-                pastPreconditionFailed = false
-                pullChatMessages(0)
-            } else if (futurePreconditionFailed) {
-                futurePreconditionFailed = false
-                pullChatMessages(1)
-            }
         }
     }