Fallback to getNotificationText() in updateLastMessage()

This commit is contained in:
Jamie Kyle 2023-04-18 16:33:24 -07:00 committed by GitHub
parent 850442bf2d
commit 129057df84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),