Fix build

This commit is contained in:
Ilya Laktyushin
2023-01-23 16:08:59 +04:00
parent 68cf784f8b
commit 3a10dd64fc
3 changed files with 3 additions and 2 deletions

View File

@@ -1744,7 +1744,7 @@ public final class ChatListNode: ListView {
isEmpty = false
return true
case let .peerType(peerType):
if let peer = peer.peer, !peer.isDeleted {
if let peer = peer.peer, !peer.isDeleted && peer.id != context.account.peerId {
switch peerType {
case let .user(userType):
if case let .user(user) = peer {