Add part/leave command
This commit is contained in:
parent
0d4ddadb15
commit
ea2fb7f8df
@ -482,6 +482,8 @@ InputBar::command(QString command, QString args)
|
|||||||
eventId, args.trimmed());
|
eventId, args.trimmed());
|
||||||
} else if (command == "join") {
|
} else if (command == "join") {
|
||||||
ChatPage::instance()->joinRoom(args);
|
ChatPage::instance()->joinRoom(args);
|
||||||
|
} else if (command == "part" || command == "leave") {
|
||||||
|
MainWindow::instance()->openLeaveRoomDialog(room->roomId());
|
||||||
} else if (command == "invite") {
|
} else if (command == "invite") {
|
||||||
ChatPage::instance()->inviteUser(args.section(' ', 0, 0), args.section(' ', 1, -1));
|
ChatPage::instance()->inviteUser(args.section(' ', 0, 0), args.section(' ', 1, -1));
|
||||||
} else if (command == "kick") {
|
} else if (command == "kick") {
|
||||||
|
Loading…
Reference in New Issue
Block a user