summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-02-05 08:40:56 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-02-05 08:40:56 +0100
commitb3221b09d6e12cda47a4ebc8443cac43bb71d29c (patch)
tree39b14ca0d156bbef30beda6295f7c63374e1e74c /src/timeline/InputBar.cpp
parentFix avatar url conversion for widgets (diff)
downloadnheko-b3221b09d6e12cda47a4ebc8443cac43bb71d29c.tar.xz
Add /reset-state command
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index 18e224b2..cd7c4e0c 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -617,6 +617,8 @@ InputBar::command(const QString &command, QString args)
         message(QStringLiteral("ノ┬─┬ノ ︵ ( \\o°o)\\"));
     } else if (command == QLatin1String("clear-timeline")) {
         room->clearTimeline();
+    } else if (command == QLatin1String("reset-state")) {
+        room->resetState();
     } else if (command == QLatin1String("rotate-megolm-session")) {
         cache::dropOutboundMegolmSession(room->roomId().toStdString());
     } else if (command == QLatin1String("md")) {