From 78e42ab352bf0cce642de13fa21b2b5042a6e5d6 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 2 Sep 2024 15:54:05 +0200 Subject: [PATCH] Make it possible to invite users that were previously in the room by command --- src/models/actionsmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/actionsmodel.cpp b/src/models/actionsmodel.cpp index ba54e9d54..e6ee1b74d 100644 --- a/src/models/actionsmodel.cpp +++ b/src/models/actionsmodel.cpp @@ -211,7 +211,7 @@ QList actions{ Q_EMIT Controller::instance().showMessage(Controller::Positive, i18n("You are already in this room.")); return QString(); } - if (room->members().contains(room->member(text))) { + if (room->joinedMemberIds().contains(text)) { Q_EMIT Controller::instance().showMessage(Controller::Info, i18nc(" is already in this room.", "%1 is already in this room.", text)); return QString(); }