fix: allow scrolling to ContactRequest message (#14045)

This commit is contained in:
Igor Sirotin 2024-03-19 22:17:00 +00:00 committed by GitHub
parent 74440c81e5
commit 5ba0ad8ef4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

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