diff options
author | Jedi18 <targetakhil@gmail.com> | 2021-02-14 13:01:16 +0530 |
---|---|---|
committer | Jedi18 <targetakhil@gmail.com> | 2021-02-14 13:01:16 +0530 |
commit | a2dab31fd6ca3728175716df2cff2dda448b2914 (patch) | |
tree | e423132719a7f53d335f9c9f9533fd74ee72b3e7 /src/dialogs/InviteUsers.cpp | |
parent | Add double tap to reply feature (diff) | |
download | nheko-a2dab31fd6ca3728175716df2cff2dda448b2914.tar.xz |
Fix two room leaving related bugs and add invite user on clicking invite
Diffstat (limited to '')
-rw-r--r-- | src/dialogs/InviteUsers.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dialogs/InviteUsers.cpp b/src/dialogs/InviteUsers.cpp index f85adb8f..2de1d20f 100644 --- a/src/dialogs/InviteUsers.cpp +++ b/src/dialogs/InviteUsers.cpp @@ -65,6 +65,10 @@ InviteUsers::InviteUsers(QWidget *parent) connect(inviteeInput_, &TextField::returnPressed, this, &InviteUsers::addUser); connect(confirmBtn_, &QPushButton::clicked, [this]() { + if (!inviteeInput_->text().isEmpty()) { + addUser(); + } + emit sendInvites(invitedUsers()); inviteeInput_->clear(); |