Merge pull request #536 from LorenDB/master

Add a part command
This commit is contained in:
DeepBlueV7.X 2021-03-26 00:38:00 +00:00 committed by GitHub
commit 1bd59a3939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -2,9 +2,9 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
TextField {
id: input

View File

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