Adapt to power level changes in room version 12

This commit is contained in:
Tobias Fella
2025-07-22 21:11:22 +02:00
committed by Tobias Fella
parent 24e43d063a
commit aa40fc84ea
3 changed files with 38 additions and 0 deletions

View File

@@ -589,6 +589,18 @@ public:
static void setHiddenFilter(std::function<bool(const Quotient::RoomEvent *)> hiddenFilter);
/**
* @brief Whether this room has a room version where the creator is treated as having an ultimate power level
*
* For unusual room versions, this information might be wrong.
*/
bool roomCreatorHasUltimatePowerLevel() const;
/**
* @brief Whether this user is considered a creator of this room. Only applies to post-v12 rooms.
*/
bool isCreator(const QString &userId) const;
private:
bool m_visible = false;