From cc5e32c2b3c05d66f2cfedc225ac7723ee7253c4 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 21 Nov 2023 14:33:42 -0500 Subject: [PATCH] fix(message): fix deleting a quoted message loses the user info Fixes #12785 --- src/app/modules/shared_models/message_model.nim | 11 +---------- vendor/status-go | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/app/modules/shared_models/message_model.nim b/src/app/modules/shared_models/message_model.nim index feb755525c..32104a3883 100644 --- a/src/app/modules/shared_models/message_model.nim +++ b/src/app/modules/shared_models/message_model.nim @@ -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) = diff --git a/vendor/status-go b/vendor/status-go index d198ac63fc..b7acde0910 160000 --- a/vendor/status-go +++ b/vendor/status-go @@ -1 +1 @@ -Subproject commit d198ac63fc6b88c9ee8a109b15547e13238d0ad1 +Subproject commit b7acde0910e78b2ce063a6437c2f043d8a10b441