summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-03-25 20:19:48 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-03-25 20:19:48 -0400
commitea2fb7f8df098e99e3a1e2898dda55abc34ea72a (patch)
tree09963a01ef5d26f757283c1b8a9aa86aeef9e00c /src/timeline
parentFix emoji picker appearing in wrong locations (diff)
downloadnheko-ea2fb7f8df098e99e3a1e2898dda55abc34ea72a.tar.xz
Add part/leave command
Diffstat (limited to 'src/timeline')
-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 8a5e4346..b45827f6 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -482,6 +482,8 @@ InputBar::command(QString command, QString args)
                           eventId, args.trimmed());
         } else if (command == "join") {
                 ChatPage::instance()->joinRoom(args);
+        } else if (command == "part" || command == "leave") {
+                MainWindow::instance()->openLeaveRoomDialog(room->roomId());
         } else if (command == "invite") {
                 ChatPage::instance()->inviteUser(args.section(' ', 0, 0), args.section(' ', 1, -1));
         } else if (command == "kick") {