diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-04 22:38:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-04 22:38:33 +0200 |
commit | cfef90021917df0052bb49e9e35298260e7ca38c (patch) | |
tree | b922f32067a37d717d5df512e92c064ccae0753a /src/QuickMedia.cpp | |
parent | 5267b66a8822205187399290f44f27d720b01dda (diff) |
Matrix: remove initial delay when entering room
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 776093d..dfd4551 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -3882,9 +3882,8 @@ namespace QuickMedia { tabs[MESSAGES_TAB_INDEX].body->clear_items(); BodyItems new_items; - // TODO: Make asynchronous if(matrix->get_all_synced_room_messages(current_room_id, new_items) == PluginResult::OK) { - tabs[MESSAGES_TAB_INDEX].body->append_items(std::move(new_items)); + tabs[MESSAGES_TAB_INDEX].body->insert_items_by_timestamps(std::move(new_items)); tabs[MESSAGES_TAB_INDEX].body->select_last_item(); } else { std::string err_msg = "Failed to get messages in room: " + current_room_id; |