Merge branch 'change-lazyloading-disable' into 'master'

Disable lazy loading for first sync.

See merge request famedly/famedlysdk!32
This commit is contained in:
Marcel 2019-07-18 14:30:42 +00:00
commit 8aa91bf1ca
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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": {