ios: fix contact cards opening empty page on connection 2 (#5319)

This commit is contained in:
spaced4ndy
2024-12-04 21:33:12 +04:00
committed by GitHub
parent 3fa1d7b07c
commit 892f6498be

View File

@@ -2014,11 +2014,16 @@ func processReceivedMsg(_ res: ChatResponse) async {
m.removeChat(hostConn.id)
}
}
case let .businessLinkConnecting(user, groupInfo, hostMember, fromContact):
case let .businessLinkConnecting(user, groupInfo, _, fromContact):
if !active(user) { return }
await MainActor.run {
m.updateGroup(groupInfo)
}
if m.chatId == fromContact.id {
ItemsModel.shared.loadOpenChat(groupInfo.id)
}
await MainActor.run {
m.removeChat(fromContact.id)
}
case let .joinedGroupMemberConnecting(user, groupInfo, _, member):