Skip to content

Commit

Permalink
Merge pull request #4081 from nextcloud/issue-4074-conversation-list-bug
Browse files Browse the repository at this point in the history
Last message in Conversation is formatted correctly
  • Loading branch information
sowjanyakch authored Aug 15, 2024
2 parents 176ec82 + 903dd07 commit 2f251d0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)) {
Expand Down

0 comments on commit 2f251d0

Please sign in to comment.