diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index c97a7e04ad1..8ab097d09fa 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -1075,7 +1075,7 @@ class ChatActivity : chatViewModel.outOfOfficeViewState.observe(this) { uiState -> when (uiState) { is ChatViewModel.OutOfOfficeUIState.Error -> { - Log.e(TAG, "Error in outOfOfficeState", uiState.exception) + Log.e(TAG, "Error fetching/ no user absence data", uiState.exception) } ChatViewModel.OutOfOfficeUIState.None -> { } @@ -3925,8 +3925,8 @@ class ChatActivity : val retrofitBucket = ApiUtils.getRetrofitBucketForCreateRoom( apiVersion, conversationUser?.baseUrl!!, - "1", - "users", + ROOM_TYPE_ONE_TO_ONE, + ACTOR_TYPE, userId, null ) @@ -3989,6 +3989,8 @@ class ChatActivity : private const val FIVE_MINUTES_IN_SECONDS: Long = 300 private const val TEMPORARY_MESSAGE_ID_INT: Int = -3 private const val TEMPORARY_MESSAGE_ID_STRING: String = "-3" + private const val ROOM_TYPE_ONE_TO_ONE = "1" + private const val ACTOR_TYPE = "users" const val CONVERSATION_INTERNAL_ID = "CONVERSATION_INTERNAL_ID" const val NO_OFFLINE_MESSAGES_FOUND = "NO_OFFLINE_MESSAGES_FOUND" }