fix(message): fix deleting a quoted message loses the user info
Fixes #12785
This commit is contained in:
parent
4d1806a656
commit
cc5e32c2b3
|
@ -461,20 +461,11 @@ QtObject:
|
|||
var item = self.items[i]
|
||||
item.quotedMessageText = ""
|
||||
item.quotedMessageParsedText = ""
|
||||
item.quotedMessageFrom = ""
|
||||
item.quotedMessageDeleted = true
|
||||
item.quotedMessageAuthorDetails = ContactDetails()
|
||||
self.dataChanged(ind, ind, @[
|
||||
ModelRole.QuotedMessageFrom.int,
|
||||
ModelRole.QuotedMessageText.int,
|
||||
ModelRole.QuotedMessageParsedText.int,
|
||||
ModelRole.QuotedMessageContentType.int,
|
||||
ModelRole.QuotedMessageDeleted.int,
|
||||
ModelRole.QuotedMessageAuthorName.int,
|
||||
ModelRole.QuotedMessageAuthorDisplayName.int,
|
||||
ModelRole.QuotedMessageAuthorThumbnailImage.int,
|
||||
ModelRole.QuotedMessageAuthorEnsVerified.int,
|
||||
ModelRole.QuotedMessageAuthorIsContact.int,
|
||||
ModelRole.QuotedMessageAuthorColorHash.int
|
||||
])
|
||||
|
||||
proc removeItem*(self: Model, messageId: string) =
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit d198ac63fc6b88c9ee8a109b15547e13238d0ad1
|
||||
Subproject commit b7acde0910e78b2ce063a6437c2f043d8a10b441
|
Loading…
Reference in New Issue