From c91f91d5d39fe9ca04d45410f6926bec1df68f83 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 30 Mar 2022 21:15:22 +0200 Subject: Add /knock command --- src/timeline/InputBar.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/timeline/InputBar.cpp') diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index f7c4fc1e..4116729d 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -670,6 +670,8 @@ InputBar::command(const QString &command, QString args) reaction(eventId, args.trimmed()); } else if (command == QLatin1String("join")) { ChatPage::instance()->joinRoom(args); + } else if (command == QLatin1String("knock")) { + ChatPage::instance()->knockRoom(args); } else if (command == QLatin1String("part") || command == QLatin1String("leave")) { ChatPage::instance()->timelineManager()->openLeaveRoomDialog(room->roomId()); } else if (command == QLatin1String("invite")) { -- cgit 1.5.1