mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Move room subscriptions to a separate call, fix side effects when requesting other room data (leaving, inviter etc)
This commit is contained in:
committed by
Stefan Ceriu
parent
c64fb44c96
commit
54164b8437
@@ -778,6 +778,18 @@ class RoomProxyMock: RoomProxyProtocol {
|
||||
}
|
||||
var underlyingTimelineProvider: RoomTimelineProviderProtocol!
|
||||
|
||||
//MARK: - subscribeForUpdates
|
||||
|
||||
var subscribeForUpdatesCallsCount = 0
|
||||
var subscribeForUpdatesCalled: Bool {
|
||||
return subscribeForUpdatesCallsCount > 0
|
||||
}
|
||||
var subscribeForUpdatesClosure: (() async -> Void)?
|
||||
|
||||
func subscribeForUpdates() async {
|
||||
subscribeForUpdatesCallsCount += 1
|
||||
await subscribeForUpdatesClosure?()
|
||||
}
|
||||
//MARK: - loadAvatarURLForUserId
|
||||
|
||||
var loadAvatarURLForUserIdCallsCount = 0
|
||||
|
||||
Reference in New Issue
Block a user