summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-08-09 23:36:47 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-08-09 23:36:47 +0200
commit14a0aac74873c27c0454d206848f27b4eec123ae (patch)
treeb379bb81158eb8417d8da9b75b1835c7ec07e84c /src/ChatPage.cpp
parentTry to fix variable timestamp width (diff)
downloadnheko-14a0aac74873c27c0454d206848f27b4eec123ae.tar.xz
Add /clear-timeline command
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index 518be31c..63d13fb9 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -155,6 +155,11 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
                 trySync();
         });
 
+        connect(text_input_,
+                &TextInputWidget::clearRoomTimeline,
+                view_manager_,
+                &TimelineViewManager::clearCurrentRoomTimeline);
+
         connect(
           new QShortcut(QKeySequence("Ctrl+Down"), this), &QShortcut::activated, this, [this]() {
                   if (isVisible())