mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Navigate to the Pinned events timeline (#3139)
This commit is contained in:
@@ -23,6 +23,7 @@ extension AppMediatorMock {
|
||||
mock.underlyingAppState = .active
|
||||
mock.requestAuthorizationIfNeededUnderlyingReturnValue = true
|
||||
mock.underlyingWindowManager = WindowManagerMock()
|
||||
mock.underlyingNetworkMonitor = NetworkMonitorMock.default
|
||||
|
||||
return mock
|
||||
}
|
||||
|
||||
@@ -808,6 +808,11 @@ class AppMediatorMock: AppMediatorProtocol {
|
||||
set(value) { underlyingWindowManager = value }
|
||||
}
|
||||
var underlyingWindowManager: WindowManagerProtocol!
|
||||
var networkMonitor: NetworkMonitorProtocol {
|
||||
get { return underlyingNetworkMonitor }
|
||||
set(value) { underlyingNetworkMonitor = value }
|
||||
}
|
||||
var underlyingNetworkMonitor: NetworkMonitorProtocol!
|
||||
var appState: UIApplication.State {
|
||||
get { return underlyingAppState }
|
||||
set(value) { underlyingAppState = value }
|
||||
|
||||
@@ -40,6 +40,7 @@ struct RoomProxyMockConfiguration {
|
||||
var canUserInvite = true
|
||||
var canUserTriggerRoomNotification = false
|
||||
var canUserJoinCall = true
|
||||
var canUserPin = true
|
||||
|
||||
var shouldUseAutoUpdatingTimeline = false
|
||||
}
|
||||
@@ -135,6 +136,7 @@ extension RoomProxyMock {
|
||||
}
|
||||
canUserTriggerRoomNotificationUserIDReturnValue = .success(configuration.canUserTriggerRoomNotification)
|
||||
canUserJoinCallUserIDReturnValue = .success(configuration.canUserJoinCall)
|
||||
canUserPinOrUnpinUserIDReturnValue = .success(configuration.canUserPin)
|
||||
|
||||
kickUserReturnValue = .success(())
|
||||
banUserReturnValue = .success(())
|
||||
|
||||
Reference in New Issue
Block a user