From 14bb7d6bb649c4a659efca5d84a5627e073e1030 Mon Sep 17 00:00:00 2001 From: Julius Linus Date: Wed, 29 Nov 2023 09:45:22 -0600 Subject: [PATCH] Fix wrong url for webinar. Add logging+snackbar for onError Signed-off-by: Julius Linus Signed-off-by: Marcel Hibbe --- .../talk/conversationinfo/ConversationInfoActivity.kt | 3 ++- app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt b/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt index f068d008db..e04bd2ac6f 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt @@ -394,7 +394,8 @@ class ConversationInfoActivity : } override fun onError(e: Throwable) { - // unused atm + Log.e(TAG, "Failed to setLobbyForConversation", e) + Snackbar.make(binding.root, R.string.nc_common_error_sorry, Snackbar.LENGTH_LONG).show() } }) } diff --git a/app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java b/app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java index 75f520046f..298ced7547 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java +++ b/app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java @@ -247,7 +247,7 @@ public static String getUrlForRoomReadOnlyState(int version, String baseUrl, Str } public static String getUrlForRoomWebinaryLobby(int version, String baseUrl, String token) { - return getUrlForRoom(version, baseUrl, token) + "/webinary/lobby"; + return getUrlForRoom(version, baseUrl, token) + "/webinar/lobby"; } public static String getUrlForRoomNotificationCalls(int version, String baseUrl, String token) {