mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Fallback to getNotificationText() in updateLastMessage()
This commit is contained in:
@@ -4475,7 +4475,8 @@ export class ConversationModel extends window.Backbone
|
|||||||
const notificationData = previewMessage?.getNotificationData();
|
const notificationData = previewMessage?.getNotificationData();
|
||||||
|
|
||||||
this.set({
|
this.set({
|
||||||
lastMessage: notificationData?.text || '',
|
lastMessage:
|
||||||
|
notificationData?.text || previewMessage?.getNotificationText() || '',
|
||||||
lastMessageBodyRanges: notificationData?.bodyRanges,
|
lastMessageBodyRanges: notificationData?.bodyRanges,
|
||||||
lastMessagePrefix: notificationData?.emoji,
|
lastMessagePrefix: notificationData?.emoji,
|
||||||
lastMessageAuthor: previewMessage?.getAuthorText(),
|
lastMessageAuthor: previewMessage?.getAuthorText(),
|
||||||
|
|||||||
Reference in New Issue
Block a user