mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 20:39:24 +00:00
Disable RR extension when feature flag is off (#1068)
* disable rr extension according to ff * fixed typos in the code
This commit is contained in:
@@ -415,10 +415,15 @@ class ClientProxy: ClientProxyProtocol {
|
||||
|
||||
// Add the visibleRoomsSlidingSyncList here so that it can take advantage of the SS builder cold cache
|
||||
// We will still register the allRoomsSlidingSyncList later, and than will have no cache
|
||||
let slidingSync = try slidingSyncBuilder
|
||||
var slidingSyncBuilderWithExtension = slidingSyncBuilder
|
||||
.addList(listBuilder: visibleRoomsListBuilder)
|
||||
.withCommonExtensions()
|
||||
.build()
|
||||
|
||||
if !ServiceLocator.shared.settings.readReceiptsEnabled {
|
||||
slidingSyncBuilderWithExtension = slidingSyncBuilderWithExtension.withoutReceiptExtension()
|
||||
}
|
||||
|
||||
let slidingSync = try slidingSyncBuilderWithExtension.build()
|
||||
|
||||
// Don't forget to update the view proxies after building the slidingSync
|
||||
visibleRoomsListProxy?.setSlidingSync(slidingSync: slidingSync)
|
||||
|
||||
Reference in New Issue
Block a user