beforeMessageSend: Set lastMessage properly to avoid duplicate @mentions
This commit is contained in:
parent
cc233fb980
commit
3c84acc758
1 changed files with 3 additions and 1 deletions
|
@ -4162,6 +4162,7 @@ export class ConversationModel extends window.Backbone
|
|||
if (!dontAddMessage) {
|
||||
this.doAddSingleMessage(message, { isJustSent: true });
|
||||
}
|
||||
const notificationData = message.getNotificationData();
|
||||
const draftProperties = dontClearDraft
|
||||
? {}
|
||||
: {
|
||||
|
@ -4172,7 +4173,8 @@ export class ConversationModel extends window.Backbone
|
|||
quotedMessageId: undefined,
|
||||
lastMessageAuthor: message.getAuthorText(),
|
||||
lastMessageBodyRanges: message.get('bodyRanges'),
|
||||
lastMessage: message.getNotificationText(),
|
||||
lastMessage:
|
||||
notificationData?.text || message.getNotificationText() || '',
|
||||
lastMessageStatus: 'sending' as const,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue