fix(message_model): mentions not being removed when deleted or edited
Fixes #10335
This commit is contained in:
parent
591d466029
commit
17e5aa20c7
|
@ -616,6 +616,7 @@ method onMessageEdited*(self: Module, message: MessageDto) =
|
|||
self.controller.replacePubKeysWithDisplayNames(message.text),
|
||||
message.parsedText,
|
||||
message.contentType,
|
||||
message.mentioned,
|
||||
message.containsContactMentions(),
|
||||
message.links,
|
||||
message.mentionedUsersPks
|
||||
|
|
|
@ -604,6 +604,7 @@ QtObject:
|
|||
updatedRawMsg: string,
|
||||
updatedParsedText: seq[ParsedText],
|
||||
contentType: int,
|
||||
mentioned: bool,
|
||||
messageContainsMentions: bool,
|
||||
links: seq[string],
|
||||
mentionedUsersPks: seq[string]
|
||||
|
@ -613,6 +614,7 @@ QtObject:
|
|||
return
|
||||
|
||||
self.items[ind].messageText = updatedMsg
|
||||
self.items[ind].mentioned = mentioned
|
||||
self.items[ind].messageContainsMentions = messageContainsMentions
|
||||
self.items[ind].isEdited = true
|
||||
self.items[ind].links = links
|
||||
|
@ -623,6 +625,7 @@ QtObject:
|
|||
self.dataChanged(index, index, @[
|
||||
ModelRole.MessageText.int,
|
||||
ModelRole.UnparsedText.int,
|
||||
ModelRole.Mentioned.int,
|
||||
ModelRole.MessageContainsMentions.int,
|
||||
ModelRole.IsEdited.int,
|
||||
ModelRole.Links.int,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2950d37e430844d83d9897084b51a028d56e8052
|
||||
Subproject commit 4212dde28870479b23e84249937456917532db5a
|
Loading…
Reference in New Issue