summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-07 12:35:29 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-07 12:35:29 +0300
commit67458dd2f86d0e74fa14730827f1475d12a4dd6b (patch)
treee83eb13ef46b44d3473bbaf6630b6fbfd0edd91c /include
parentMark third-party headers as system (diff)
downloadnheko-67458dd2f86d0e74fa14730827f1475d12a4dd6b.tar.xz
Mark all decrypted messages with a padlock
fixes #351
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineView.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/timeline/TimelineView.h b/include/timeline/TimelineView.h

index 7f1912ea..81212c27 100644 --- a/include/timeline/TimelineView.h +++ b/include/timeline/TimelineView.h
@@ -46,6 +46,14 @@ private: std::function<void()> fn_; }; +struct DecryptionResult +{ + //! The decrypted content as a normal plaintext event. + utils::TimelineEvent event; + //! Whether or not the decryption was successful. + bool isDecrypted = false; +}; + class FloatingButton; struct DescInfo; @@ -192,7 +200,7 @@ private: QWidget *relativeWidget(TimelineItem *item, int dt) const; - TimelineEvent parseEncryptedEvent( + DecryptionResult parseEncryptedEvent( const mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> &e); void handleClaimedKeys(std::shared_ptr<StateKeeper> keeper,