From 6a7f54a5bf43a64ca5157a9f86776a7f301b188a Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Fri, 10 Mar 2023 15:12:16 +0100 Subject: [PATCH] Remove debug toast messages Signed-off-by: Marcel Hibbe --- .../nextcloud/talk/controllers/ChatController.kt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt b/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt index 2fecdf7bb..c68a51a8e 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt +++ b/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") } }