ios: simplify incognito feature (#979)

This commit is contained in:
JRoberts
2022-08-29 14:47:29 +04:00
committed by GitHub
parent b4d7afb4c1
commit 7343e4a51a
15 changed files with 165 additions and 433 deletions

View File

@@ -324,9 +324,9 @@ func apiContactInfo(contactId: Int64) async throws -> (ConnectionStats?, Profile
throw r
}
func apiGroupMemberInfo(_ groupId: Int64, _ groupMemberId: Int64) async throws -> (ConnectionStats?, LocalProfile?) {
func apiGroupMemberInfo(_ groupId: Int64, _ groupMemberId: Int64) async throws -> (ConnectionStats?) {
let r = await chatSendCmd(.apiGroupMemberInfo(groupId: groupId, groupMemberId: groupMemberId))
if case let .groupMemberInfo(_, _, connStats_, localMainProfile) = r { return (connStats_, localMainProfile) }
if case let .groupMemberInfo(_, _, connStats_) = r { return (connStats_) }
throw r
}