Return member objects for users that are not actually members

Most of the data in the objects will be empty, but at least a valid matrix id is provided.
This fixes missing data in some places in the UI (e.g., in HiddenDelegate)
This commit is contained in:
Tobias Fella
2025-05-05 20:45:10 +02:00
parent 5262ec4b56
commit 8817ca7f2b

View File

@@ -154,10 +154,6 @@ QVariant MessageModel::data(const QModelIndex &idx, int role) const
mId = event.value().get().senderId();
}
if (!m_room->isMember(mId)) {
return QVariant::fromValue<NeochatRoomMember *>(emptyNeochatRoomMember);
}
return QVariant::fromValue<NeochatRoomMember *>(m_room->qmlSafeMember(mId));
}