summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-04-22 19:52:30 -0400
committerJoseph Donofry <joedonofry@gmail.com>2020-04-22 19:52:30 -0400
commitb298f01d92eac2f7af6fce28cbe5256411e6c386 (patch)
treef935539dea236e5dfc733906bfab513e4be4cc0b /src/timeline/TimelineModel.cpp
parentAdd ability to toggle sidebar messages for encrypted rooms (diff)
downloadnheko-b298f01d92eac2f7af6fce28cbe5256411e6c386.tar.xz
Add signal/slot for decryption changes in last patch
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index 439a7786..3e2c32fa 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp
@@ -502,6 +502,13 @@ isMessage(const mtx::events::Event<T> &) return false; } +template<typename T> +auto +isMessage(const mtx::events::EncryptedEvent<T> &) +{ + return true; +} + void TimelineModel::updateLastMessage() {