mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Removing debug timer
This commit is contained in:
parent
197128c3fe
commit
81f69b801d
1 changed files with 4 additions and 4 deletions
|
|
@ -121,9 +121,9 @@ public final class MediaStreamComponent: CombinedComponent {
|
|||
|
||||
var updated = false
|
||||
// TODO: remove debug timer
|
||||
Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { _ in
|
||||
strongSelf.infoThrottler.publish(/*members.totalCount*/Int.random(in: 0..<1000000000)) { [weak strongSelf] latestCount in
|
||||
print(members.totalCount)
|
||||
// Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { _ in
|
||||
strongSelf.infoThrottler.publish(members.totalCount/*Int.random(in: 0..<10000000)*/) { [weak strongSelf] latestCount in
|
||||
// let _ = members.totalCount
|
||||
guard let strongSelf = strongSelf else { return }
|
||||
var updated = false
|
||||
let originInfo = OriginInfo(title: callPeer.debugDisplayTitle, memberCount: latestCount)
|
||||
|
|
@ -135,7 +135,7 @@ public final class MediaStreamComponent: CombinedComponent {
|
|||
strongSelf.updated(transition: .immediate)
|
||||
}
|
||||
}
|
||||
}.fire()
|
||||
// }.fire()
|
||||
if state.canManageCall != strongSelf.canManageCall {
|
||||
strongSelf.canManageCall = state.canManageCall
|
||||
updated = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue