fixing bug where there were no times to observe
This commit is contained in:
@@ -358,11 +358,12 @@ extension InnerCircleViewModel {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Add time observer. Observe boundary time changes on the main queue.
|
||||
self.queuePlayer.addBoundaryTimeObserver(forTimes: times, queue: .main) { [weak self] in
|
||||
// Update UI
|
||||
self?.messagesListeningProgress += Float(Self.multiplier)
|
||||
if times.count > 0 {
|
||||
// Add time observer. Observe boundary time changes on the main queue.
|
||||
self.queuePlayer.addBoundaryTimeObserver(forTimes: times, queue: .main) { [weak self] in
|
||||
// Update UI
|
||||
self?.messagesListeningProgress += Float(Self.multiplier)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user