summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-02-04 18:17:14 -0500
committerJoseph Donofry <joedonofry@gmail.com>2020-02-04 18:17:14 -0500
commit096db389d18a85d209bcde1a73e1f748c8adce54 (patch)
tree98185daca742b2e0979aa63d318fa45763006b49 /src/timeline
parentSelect first room on startup (diff)
downloadnheko-096db389d18a85d209bcde1a73e1f748c8adce54.tar.xz
Make closing the reply popup actually clear the reply message
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineViewManager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h

index 8552d6b3..625999c9 100644 --- a/src/timeline/TimelineViewManager.h +++ b/src/timeline/TimelineViewManager.h
@@ -47,6 +47,7 @@ signals: void activeTimelineChanged(TimelineModel *timeline); void initialSyncChanged(bool isInitialSync); void replyingEventChanged(QString replyingEvent); + void replyClosed(); public slots: void updateReplyingEvent(const QString &replyingEvent) @@ -56,6 +57,11 @@ public slots: emit replyingEventChanged(replyingEvent_); } } + void closeReply() + { + this->updateReplyingEvent(nullptr); + emit replyClosed(); + } QString getReplyingEvent() const { return replyingEvent_; } void updateReadReceipts(const QString &room_id, const std::vector<QString> &event_ids); void initWithMessages(const std::map<QString, mtx::responses::Timeline> &msgs);