Add /knock command

This commit is contained in:
Nicolas Werner 2022-03-30 21:15:22 +02:00
parent cb76777fce
commit c91f91d5d3
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
4 changed files with 25 additions and 2 deletions

View file

@ -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")) {