Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-02-22 17:59:27 +04:00
parent 0e4ee6e057
commit e379dca5e9
4 changed files with 21 additions and 6 deletions

View File

@@ -473,7 +473,7 @@ func peerInfoScreenData(context: AccountContext, peerId: PeerId, strings: Presen
))
case let .user(userPeerId, secretChatId, kind):
let groupsInCommon: GroupsInCommonContext?
if case .user = kind {
if [.user, .bot].contains(kind) {
groupsInCommon = GroupsInCommonContext(account: context.account, peerId: userPeerId)
} else {
groupsInCommon = nil