mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Use native video call picture in picture! (#3190)
* Use native video call picture in picture! * Handle isSupported, isPossible and web view errors. * Use new canEnterPip method. * Hide a room's Call button when already joined to the call. * Tweak feature flag description. * PR comments.
This commit is contained in:
@@ -17,12 +17,15 @@
|
||||
import Combine
|
||||
import Foundation
|
||||
|
||||
struct ElementCallServiceMockConfiguration { }
|
||||
struct ElementCallServiceMockConfiguration {
|
||||
var ongoingCallRoomID: String?
|
||||
}
|
||||
|
||||
extension ElementCallServiceMock {
|
||||
convenience init(_ configuration: ElementCallServiceMockConfiguration) {
|
||||
self.init()
|
||||
|
||||
underlyingActions = PassthroughSubject().eraseToAnyPublisher()
|
||||
underlyingOngoingCallRoomIDPublisher = .init(.init(configuration.ongoingCallRoomID))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4894,7 +4894,11 @@ class ElementCallServiceMock: ElementCallServiceProtocol {
|
||||
set(value) { underlyingActions = value }
|
||||
}
|
||||
var underlyingActions: AnyPublisher<ElementCallServiceAction, Never>!
|
||||
var ongoingCallRoomID: String?
|
||||
var ongoingCallRoomIDPublisher: CurrentValuePublisher<String?, Never> {
|
||||
get { return underlyingOngoingCallRoomIDPublisher }
|
||||
set(value) { underlyingOngoingCallRoomIDPublisher = value }
|
||||
}
|
||||
var underlyingOngoingCallRoomIDPublisher: CurrentValuePublisher<String?, Never>!
|
||||
|
||||
//MARK: - setClientProxy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user