Skip to content

Commit

Permalink
Fallback to getNotificationText() in updateLastMessage()
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds-signal committed Apr 18, 2023
1 parent 850442b commit 129057d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/models/conversations.ts
Expand Up @@ -4475,7 +4475,8 @@ export class ConversationModel extends window.Backbone
const notificationData = previewMessage?.getNotificationData();

this.set({
lastMessage: notificationData?.text || '',
lastMessage:
notificationData?.text || previewMessage?.getNotificationText() || '',
lastMessageBodyRanges: notificationData?.bodyRanges,
lastMessagePrefix: notificationData?.emoji,
lastMessageAuthor: previewMessage?.getAuthorText(),
Expand Down

0 comments on commit 129057d

Please sign in to comment.