mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Bump element-call-ios to 0.1.0-rc.10 (#6303)
* Bump element-call-ios to 0.1.0-rc.10 The release moves the RTC core to matrix-rust-rtc's room-first API, so the stack no longer needs starting or stopping: it subscribes to a room when a call opens it. It also adds headphones and Bluetooth audio output icons, mapped here to Compound's headphones icon. * Bump compound-design-tokens to 11.3.1 and use the Bluetooth output icon 11.3.1 adds the `bluetoothOutput` icon, replacing the `headphonesSolid` placeholder for the Bluetooth audio route in native calls.
This commit is contained in:
@@ -56,20 +56,15 @@ final class NativeCallStack {
|
||||
|
||||
func start() async {
|
||||
Self.installRTCLogBridge()
|
||||
await stack.start()
|
||||
}
|
||||
|
||||
/// Releases the stack along with the to-device subscription it holds open for key delivery.
|
||||
/// Hangs up any call in progress.
|
||||
func stop() {
|
||||
MXLog.info("\(Self.logPrefix) Stopping the native call stack, in a call: \(controller.isInCall)")
|
||||
|
||||
// Best effort: the leave this starts may not finish before the core stops, but the
|
||||
// alternative is walking away from the call without telling the room at all.
|
||||
if controller.isInCall {
|
||||
controller.hangUp()
|
||||
}
|
||||
|
||||
stack.stop()
|
||||
}
|
||||
|
||||
/// Starts, or returns to, the call in the room.
|
||||
|
||||
@@ -110,6 +110,8 @@ struct NativeCallIcons: ElementCallIconRenderingProtocol {
|
||||
case .shareScreen: \.shareScreenSolid
|
||||
case .volumeOn: \.volumeOnSolid
|
||||
case .volumeOff: \.volumeOffSolid
|
||||
case .headphones: \.headphonesSolid
|
||||
case .bluetooth: \.bluetoothOutput
|
||||
case .raisedHand: \.raisedHandSolid
|
||||
case .userProfile: \.userProfileSolid
|
||||
case .overflow: \.overflowHorizontal
|
||||
|
||||
Reference in New Issue
Block a user