diff --git a/src/InviteesModel.cpp b/src/InviteesModel.cpp index 707bfd97..ad99c847 100644 --- a/src/InviteesModel.cpp +++ b/src/InviteesModel.cpp @@ -16,6 +16,10 @@ InviteesModel::InviteesModel(QObject *parent) void InviteesModel::addUser(QString mxid) { + for (const auto &invitee : invitees_) + if (invitee->mxid_ == mxid) + return; + beginInsertRows(QModelIndex(), invitees_.count(), invitees_.count()); auto invitee = new Invitee{mxid, this};