From 1efa14ebae2c207ff087e3c9485602db7f80fd35 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 f068d008d..e04bd2ac6 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 75f520046..298ced754 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 class ApiUtils { } 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) {