mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 19:56:57 +02:00
Make sure we store the last block sequence sent (even if it's 0)
This commit is contained in:
@@ -170,8 +170,8 @@ public class VoiceBroadcastAggregator {
|
||||
let state = VoiceBroadcastInfoState(rawValue: voiceBroadcastInfo.state) else {
|
||||
return
|
||||
}
|
||||
// For .pause and .stopped, if there is a lastChunkSequence (ie its value is > 0), we store it
|
||||
if [.stopped, .paused].contains(state), voiceBroadcastInfo.lastChunkSequence > 0 {
|
||||
// For .pause and .stopped, update the last chunk sequence
|
||||
if [.stopped, .paused].contains(state) {
|
||||
self.voiceBroadcastLastChunkSequence = voiceBroadcastInfo.lastChunkSequence
|
||||
}
|
||||
self.delegate?.voiceBroadcastAggregator(self, didReceiveState: state)
|
||||
|
||||
Reference in New Issue
Block a user