aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 26de0c5f..50e31d52 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -480,8 +480,8 @@ void Connection::sync(int timeout)
d->syncTimeout = timeout;
Filter filter;
- filter.room.edit().timeline.edit().limit.emplace(100);
- filter.room.edit().state.edit().lazyLoadMembers.emplace(d->lazyLoading);
+ filter.room.timeline.limit.emplace(100);
+ filter.room.state.lazyLoadMembers.emplace(d->lazyLoading);
auto job = d->syncJob =
callApi<SyncJob>(BackgroundRequest, d->data->lastEvent(), filter,
timeout);