Selaa lähdekoodia

Remove debug toast messages

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 2 vuotta sitten
vanhempi
commit
6a7f54a5bf

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

@@ -2095,15 +2095,6 @@ class ChatController(args: Bundle) :
                             "",
                             sessionIdAfterRoomJoined
                         )
-                    } else {
-                        Log.e(TAG, "magicWebSocketInstance or currentConversation were null! Failed to leave the room!")
-                        if (BuildConfig.DEBUG) {
-                            Toast.makeText(
-                                context,
-                                "magicWebSocketInstance or currentConversation were null! Failed to leave the room!",
-                                Toast.LENGTH_LONG
-                            ).show()
-                        }
                     }
 
                     sessionIdAfterRoomJoined = "0"
@@ -2216,14 +2207,10 @@ class ChatController(args: Bundle) :
         if (conversationUser == null) {
             return
         }
-
         webSocketInstance = WebSocketConnectionHelper.getWebSocketInstanceForUserId(conversationUser.id!!)
 
         if (webSocketInstance == null) {
-            Log.e(TAG, "failed to setup webSocketInstance")
-            if (BuildConfig.DEBUG) {
-                Toast.makeText(context, "failed to setup webSocketInstance", Toast.LENGTH_LONG).show()
-            }
+            Log.d(TAG, "webSocketInstance not set up. This should only happen when not using the HPB")
         }
     }