fix(message): fix deleting a quoted message loses the user info

Fixes #12785
This commit is contained in:
Jonathan Rainville 2023-11-21 14:33:42 -05:00
parent 4d1806a656
commit cc5e32c2b3
2 changed files with 2 additions and 11 deletions

View File

@ -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) =

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit d198ac63fc6b88c9ee8a109b15547e13238d0ad1
Subproject commit b7acde0910e78b2ce063a6437c2f043d8a10b441