Merge branch 'change-lazyloading-disable' into 'master'
Disable lazy loading for first sync. See merge request famedly/famedlysdk!32
This commit is contained in:
commit
8aa91bf1ca
|
@ -53,7 +53,7 @@ class Connection {
|
|||
String get _syncFilters => '{"room":{"state":{"lazy_load_members":true}}}';
|
||||
|
||||
String get _firstSyncFilters =>
|
||||
'{"room":{"include_leave":true,"state":{"lazy_load_members":true}}}';
|
||||
'{"room":{"include_leave":true,"state":{"lazy_load_members":false}}}';
|
||||
|
||||
/// Handles the connection to the Matrix Homeserver. You can change this to a
|
||||
/// MockClient for testing.
|
||||
|
|
|
@ -309,7 +309,7 @@ class FakeMatrixApi extends MockClient {
|
|||
]
|
||||
}
|
||||
},
|
||||
"/client/r0/sync?filter=%7B%22room%22:%7B%22include_leave%22:true,%22state%22:%7B%22lazy_load_members%22:true%7D%7D%7D":
|
||||
"/client/r0/sync?filter=%7B%22room%22:%7B%22include_leave%22:true,%22state%22:%7B%22lazy_load_members%22:false%7D%7D%7D":
|
||||
(var req) => {
|
||||
"next_batch": Random().nextDouble().toString(),
|
||||
"presence": {
|
||||
|
|
Loading…
Reference in a new issue