minor fixes
This commit is contained in:
parent
54e2e7ef7f
commit
30d61e3114
4 changed files with 42 additions and 38 deletions
|
|
@ -1010,8 +1010,8 @@ ChatPage::trySync()
|
|||
|
||||
// TODO: fine grained error handling
|
||||
try {
|
||||
cache::saveState(res);
|
||||
olm::handle_to_device_messages(res.to_device);
|
||||
cache::saveState(res);
|
||||
olm::handle_to_device_messages(res.to_device.events);
|
||||
|
||||
auto updates = cache::roomUpdates(res);
|
||||
|
||||
|
|
@ -1234,7 +1234,7 @@ ChatPage::initialSyncHandler(const mtx::responses::Sync &res, mtx::http::Request
|
|||
try {
|
||||
cache::saveState(res);
|
||||
|
||||
olm::handle_to_device_messages(res.to_device);
|
||||
olm::handle_to_device_messages(res.to_device.events);
|
||||
|
||||
emit initializeViews(std::move(res.rooms));
|
||||
emit initializeRoomList(cache::roomInfo());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue