mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[WIP] Conference calls
This commit is contained in:
@@ -142,8 +142,16 @@ public final class SharedWakeupManager {
|
||||
|> distinctUntilChanged
|
||||
|
||||
let hasActiveGroupCalls = (callManager?.currentGroupCallSignal ?? .single(nil))
|
||||
|> map { call in
|
||||
return call?.accountContext.account.id == account.id
|
||||
|> map { call -> Bool in
|
||||
guard let call else {
|
||||
return false
|
||||
}
|
||||
switch call {
|
||||
case let .conferenceSource(conferenceSource):
|
||||
return conferenceSource.context.account.id == account.id
|
||||
case let .group(groupCall):
|
||||
return groupCall.accountContext.account.id == account.id
|
||||
}
|
||||
}
|
||||
|> distinctUntilChanged
|
||||
|
||||
|
||||
Reference in New Issue
Block a user