Fix compilation

(cherry picked from commit a769b904dc)
This commit is contained in:
Tobias Fella
2024-09-18 14:34:55 +02:00
parent 21cabeb20c
commit fb83d5cff8

View File

@@ -247,7 +247,7 @@ void PermissionsModel::setPowerLevel(const QString &permission, const int &newPo
powerLevelContent[QLatin1String("events")] = eventPowerLevels;
}
m_room->setState<Quotient::RoomPowerLevelsEvent>(powerLevelContent);
m_room->setState<Quotient::RoomPowerLevelsEvent>(Quotient::fromJson<Quotient::PowerLevelsEventContent>(powerLevelContent));
}
}