From 5ba0ad8ef40a5607e996b81fbe83870236be3146 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Tue, 19 Mar 2024 22:17:00 +0000 Subject: [PATCH] fix: allow scrolling to ContactRequest message (#14045) --- .../main/chat_section/chat_content/messages/module.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/modules/main/chat_section/chat_content/messages/module.nim b/src/app/modules/main/chat_section/chat_content/messages/module.nim index f2f03e5504..1cc3576f1e 100644 --- a/src/app/modules/main/chat_section/chat_content/messages/module.nim +++ b/src/app/modules/main/chat_section/chat_content/messages/module.nim @@ -665,9 +665,8 @@ method onGetMessageById*(self: Module, requestId: UUID, messageId: string, messa self.view.setMessageSearchOngoing(false) return - if message.contentType == ContentType.ContactIdentityVerification or - message.contentType == ContentType.ContactRequest: - warn "attempted to scroll to a non-displayed message", messageId, contentType = $message.contentType + if message.contentType == ContentType.ContactIdentityVerification: + warn "attempted to scroll to a non-visual message", messageId, contentType = $message.contentType self.view.setMessageSearchOngoing(false) return