diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2020-04-23 19:21:20 -0400 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2020-04-23 19:21:20 -0400 |
commit | 58933654391c699951b322a153bcc3a85bf40552 (patch) | |
tree | ad0a74770e31310134d3c39198f4675326a14df6 /src/timeline/TimelineModel.cpp | |
parent | Fix CHANGELOG typo (diff) | |
download | nheko-58933654391c699951b322a153bcc3a85bf40552.tar.xz |
Change decrypt setting again
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 75819532..e3a1a781 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -512,19 +512,11 @@ isMessage(const mtx::events::EncryptedEvent<T> &) void TimelineModel::updateLastMessage() { - // Get the user setting to show decrypted messages in side bar - bool decrypt = QSettings().value("user/decrypt_sidebar", true).toBool(); - updateLastMessage(decrypt); -} - -void -TimelineModel::updateLastMessage(bool decrypt) -{ for (auto it = eventOrder.begin(); it != eventOrder.end(); ++it) { auto event = events.value(*it); if (auto e = std::get_if<mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>( &event)) { - if (decrypt) { + if (decryptDescription) { event = decryptEvent(*e).event; } } |