mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Update the SDK fixing a few room list bugs. (#3054)
* Update the SDK. * Handle API break for editing timeline items. * Handle API break for Element Call
This commit is contained in:
@@ -39,6 +39,7 @@ private struct ElementCallWidgetMessage: Codable {
|
||||
|
||||
class ElementCallWidgetDriver: WidgetCapabilitiesProvider, ElementCallWidgetDriverProtocol {
|
||||
private let room: RoomProtocol
|
||||
private let deviceID: String
|
||||
private var widgetDriver: WidgetDriverAndHandle?
|
||||
|
||||
let widgetID = UUID().uuidString
|
||||
@@ -49,8 +50,9 @@ class ElementCallWidgetDriver: WidgetCapabilitiesProvider, ElementCallWidgetDriv
|
||||
actionsSubject.eraseToAnyPublisher()
|
||||
}
|
||||
|
||||
init(room: RoomProtocol) {
|
||||
init(room: RoomProtocol, deviceID: String) {
|
||||
self.room = room
|
||||
self.deviceID = deviceID
|
||||
}
|
||||
|
||||
func start(baseURL: URL, clientID: String, colorScheme: ColorScheme) async -> Result<URL, ElementCallWidgetDriverError> {
|
||||
@@ -143,7 +145,7 @@ class ElementCallWidgetDriver: WidgetCapabilitiesProvider, ElementCallWidgetDriv
|
||||
// MARK: - WidgetCapabilitiesProvider
|
||||
|
||||
func acquireCapabilities(capabilities: WidgetCapabilities) -> WidgetCapabilities {
|
||||
getElementCallRequiredPermissions(ownUserId: room.ownUserId())
|
||||
getElementCallRequiredPermissions(ownUserId: room.ownUserId(), ownDeviceId: deviceID)
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
Reference in New Issue
Block a user