summary refs log tree commit diff
path: root/src/timeline/TimelineModel.h
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-04-23 19:22:25 -0400
committerGitHub <noreply@github.com>2020-04-23 19:22:25 -0400
commit4e3b190ac7e8fc8d87cda6832a623296afd1b90e (patch)
treead0a74770e31310134d3c39198f4675326a14df6 /src/timeline/TimelineModel.h
parentTerminate user color calculation, when no solution can be found (diff)
parentChange decrypt setting again (diff)
downloadnheko-4e3b190ac7e8fc8d87cda6832a623296afd1b90e.tar.xz
Merge pull request #173 from Nheko-Reborn/decrypt-sidebar
Decrypt sidebar setting added to user settings
Diffstat (limited to 'src/timeline/TimelineModel.h')
-rw-r--r--src/timeline/TimelineModel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.h b/src/timeline/TimelineModel.h

index 84e9ec26..ae468c09 100644 --- a/src/timeline/TimelineModel.h +++ b/src/timeline/TimelineModel.h
@@ -189,6 +189,7 @@ public: Q_INVOKABLE void cacheMedia(QString eventId); Q_INVOKABLE bool saveMedia(QString eventId) const; + void updateLastMessage(); void addEvents(const mtx::responses::Timeline &events); template<class T> void sendMessage(const T &msg); @@ -223,6 +224,7 @@ public slots: emit replyChanged(reply_); } } + void setDecryptDescription(bool decrypt) { decryptDescription = decrypt; } private slots: // Add old events at the top of the timeline. @@ -257,7 +259,6 @@ private: const std::string &user_id, const mtx::responses::ClaimKeys &res, mtx::http::RequestErr err); - void updateLastMessage(); void readEvent(const std::string &id); QHash<QString, mtx::events::collections::TimelineEvents> events; @@ -270,6 +271,7 @@ private: bool isInitialSync = true; bool paginationInProgress = false; + bool decryptDescription = true; QString currentId; QString reply_;