summary refs log tree commit diff
path: root/src/timeline/RoomlistModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-02-18 02:59:33 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-02-18 03:08:23 +0100
commit20740c9976e5f16326dea03b6b2cda933caa1d2e (patch)
tree58f57e04ccfff8e47554b12eea7c0ece867f2e29 /src/timeline/RoomlistModel.cpp
parentFix edits in other clients jumping out of threads (diff)
downloadnheko-20740c9976e5f16326dea03b6b2cda933caa1d2e.tar.xz
Automatically fetch keys for undecrypted messages after verification
Also fix rerendering edited messages after keys are received.

fixes #1375
fixes #770
fixes #888
Diffstat (limited to 'src/timeline/RoomlistModel.cpp')
-rw-r--r--src/timeline/RoomlistModel.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp

index 5bd12a36..c4826453 100644 --- a/src/timeline/RoomlistModel.cpp +++ b/src/timeline/RoomlistModel.cpp
@@ -812,6 +812,18 @@ RoomlistModel::setCurrentRoom(const QString &roomid) } } +void +RoomlistModel::refetchOnlineKeyBackupKeys() +{ + for (auto i = models.begin(); i != models.end(); ++i) { + auto ptr = i.value(); + + if (!ptr.isNull()) { + EventStore::refetchOnlineKeyBackupKeys(ptr.data()); + } + } +} + namespace { enum NotificationImportance : short {