FIx querying power levels

Fixes #422
This commit is contained in:
Tobias Fella
2021-10-16 20:16:36 +02:00
parent b22ebf3671
commit 6c5ca0ac9d

View File

@@ -104,7 +104,7 @@ QVariant UserListModel::data(const QModelIndex &index, int role) const
return UserType::Member;
}
if (userPl < pl->powerLevelForState("m.room.message")) {
if (userPl < pl->powerLevelForEvent("m.room.message")) {
return UserType::Muted;
}