multiplatform: fix deleted contacts with conversations being identified as contact cards (#4828)

* multiplatform: fix deleted contacts with conversations being identified as contact cards

* fix in ios

* Revert "fix in ios"

This reverts commit 9b8c6bc125.

* fix for ios

* same check as ios for android and desktop
This commit is contained in:
Diogo
2024-09-04 18:12:41 +01:00
committed by GitHub
parent 6407d5de63
commit e002f33c53
3 changed files with 3 additions and 3 deletions
@@ -199,7 +199,7 @@ func chatContactType(chat: Chat) -> ContactType {
case .contactRequest:
return .request
case let .direct(contact):
if contact.activeConn == nil && contact.profile.contactLink != nil {
if contact.activeConn == nil && contact.profile.contactLink != nil && contact.active {
return .card
} else if contact.chatDeleted {
return .chatDeleted