Handle a connection issue when we try to start a new voice broadcast (#7276)

This commit is contained in:
Yoan Pintas
2023-01-17 14:49:36 +00:00
committed by GitHub
parent be2a6f15b1
commit 947f67ec93
5 changed files with 26 additions and 6 deletions
@@ -186,7 +186,7 @@ public class VoiceBroadcastService: NSObject {
return
}
self.room.sendStateEvent(.custom(VoiceBroadcastSettings.voiceBroadcastInfoContentKeyType),
let httpOperation = self.room.sendStateEvent(.custom(VoiceBroadcastSettings.voiceBroadcastInfoContentKeyType),
content: stateEventContent, stateKey: stateKey) { [weak self] response in
guard let self = self else { return }
@@ -199,6 +199,9 @@ public class VoiceBroadcastService: NSObject {
}
taskCompleted()
}
// No retry to send the request
httpOperation.maxNumberOfTries = 0
}
}
}