diff options
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/connection.cpp b/connection.cpp index 9f56ec96..bc6d1f26 100644 --- a/connection.cpp +++ b/connection.cpp @@ -18,7 +18,6 @@ #include "connection.h" #include "connectiondata.h" -//#include "connectionprivate.h" #include "user.h" #include "events/event.h" #include "room.h" @@ -172,7 +171,7 @@ void Connection::sync(int timeout) auto job = d->startSyncJob(filter, timeout); connect( job, &SyncJob::success, [=] () { d->data->setLastEvent(job->nextBatch()); - for( const auto& roomData: job->roomData() ) + for( auto& roomData: job->roomData() ) { if ( Room* r = provideRoom(roomData.roomId) ) r->updateData(roomData); |