|
|
@ -544,7 +544,7 @@ ChatPage::initialSyncCompleted(const mtx::responses::Sync &response) |
|
|
|
roomStates_); |
|
|
|
roomStates_); |
|
|
|
QtConcurrent::run(cache_.data(), &Cache::setInvites, response.rooms.invite); |
|
|
|
QtConcurrent::run(cache_.data(), &Cache::setInvites, response.rooms.invite); |
|
|
|
|
|
|
|
|
|
|
|
// Populate timelines with messages.
|
|
|
|
// Create timelines
|
|
|
|
view_manager_->initialize(response.rooms); |
|
|
|
view_manager_->initialize(response.rooms); |
|
|
|
|
|
|
|
|
|
|
|
// Initialize room list.
|
|
|
|
// Initialize room list.
|
|
|
@ -554,6 +554,9 @@ ChatPage::initialSyncCompleted(const mtx::responses::Sync &response) |
|
|
|
client_->setNextBatchToken(QString::fromStdString(response.next_batch)); |
|
|
|
client_->setNextBatchToken(QString::fromStdString(response.next_batch)); |
|
|
|
client_->sync(); |
|
|
|
client_->sync(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Add messages
|
|
|
|
|
|
|
|
view_manager_->sync(response.rooms); |
|
|
|
|
|
|
|
|
|
|
|
emit contentLoaded(); |
|
|
|
emit contentLoaded(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|