summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-16 01:00:32 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-16 01:00:32 +0530
commit96028f00a5d1510c2db6b81d536fb8e8249a3272 (patch)
tree880548b2a4afcbe5f8f028a0436a09c367464a0a /src
parentFix room list updating on adding to hidden tag or removing tag (diff)
downloadnheko-96028f00a5d1510c2db6b81d536fb8e8249a3272.tar.xz
trim invite input text
Diffstat (limited to 'src')
-rw-r--r--src/dialogs/InviteUsers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialogs/InviteUsers.cpp b/src/dialogs/InviteUsers.cpp
index 2de1d20f..8f1097fa 100644
--- a/src/dialogs/InviteUsers.cpp
+++ b/src/dialogs/InviteUsers.cpp
@@ -65,7 +65,7 @@ InviteUsers::InviteUsers(QWidget *parent)
 
         connect(inviteeInput_, &TextField::returnPressed, this, &InviteUsers::addUser);
         connect(confirmBtn_, &QPushButton::clicked, [this]() {
-                if (!inviteeInput_->text().isEmpty()) {
+                if (!inviteeInput_->text().trimmed().isEmpty()) {
                         addUser();
                 }