Skip to content
Snippets Groups Projects
Commit 77c636f3 authored by Loren Burkholder's avatar Loren Burkholder
Browse files

Insert user before loading avatar/display name

parent c78c2848
No related branches found
No related tags found
No related merge requests found
......@@ -19,10 +19,12 @@ InviteesModel::addUser(QString mxid)
beginInsertRows(QModelIndex(), invitees_.count(), invitees_.count());
auto invitee = new Invitee{mxid, this};
connect(invitee, &Invitee::userInfoLoaded, this, [this]() { endInsertRows(); });
auto indexOfInvitee = invitees_.count();
connect(invitee, &Invitee::userInfoLoaded, this, [this, indexOfInvitee]() { emit dataChanged(index(indexOfInvitee), index(indexOfInvitee)); });
invitees_.push_back(invitee);
endInsertRows();
emit countChanged();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment