summary refs log tree commit diff
path: root/src/dialogs/InviteUsers.cpp
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-14 13:01:16 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-14 13:01:16 +0530
commita2dab31fd6ca3728175716df2cff2dda448b2914 (patch)
treee423132719a7f53d335f9c9f9533fd74ee72b3e7 /src/dialogs/InviteUsers.cpp
parentAdd double tap to reply feature (diff)
downloadnheko-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.cpp4
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();