summary refs log tree commit diff
diff options
context:
space:
mode:
-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();
                 }