From 903dd07a1b850b5935c74f5b8485250cd6f7842c Mon Sep 17 00:00:00 2001 From: rapterjet2004 Date: Wed, 14 Aug 2024 11:56:05 -0500 Subject: [PATCH] fix Signed-off-by: rapterjet2004 --- .../com/nextcloud/talk/adapters/items/ConversationItem.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.kt b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.kt index c3b2af79f3..d13be422c7 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.kt +++ b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.kt @@ -232,7 +232,7 @@ class ConversationItem( val text = if ( - chatMessage?.messageType === MessageType.REGULAR_TEXT_MESSAGE.toString() + chatMessage?.getCalculateMessageType() == MessageType.REGULAR_TEXT_MESSAGE ) { calculateRegularLastMessageText(appContext) } else { @@ -252,6 +252,8 @@ class ConversationItem( appContext.getString(R.string.nc_formatted_message_you), lastMessageDisplayText ) + } else if (model.type == ConversationEnums.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL) { + lastMessageDisplayText } else { val authorDisplayName = if (!TextUtils.isEmpty(chatMessage?.actorDisplayName)) {