diff options
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp index d6338191..904649bc 100644 --- a/connection.cpp +++ b/connection.cpp @@ -113,7 +113,11 @@ SyncJob* Connection::sync(int timeout) syncJob->setTimeout(timeout); connect( syncJob, &SyncJob::success, [=] () { d->data->setLastEvent(syncJob->nextBatch()); - d->processRooms(syncJob->roomData()); + for( const auto roomData: syncJob->roomData() ) + { + if ( Room* r = d->provideRoom(roomData.roomId) ) + r->updateData(roomData); + } emit syncDone(); }); connect( syncJob, &SyncJob::failure, [=] () { |