summary refs log tree commit diff
path: root/include/Cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Cache.h')
-rw-r--r--include/Cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/Cache.h b/include/Cache.h

index 20f277a9..d2574b76 100644 --- a/include/Cache.h +++ b/include/Cache.h
@@ -206,6 +206,12 @@ public: bool isFormatValid(); void setCurrentFormat(); + //! Check if the given user has power leve greater than than + //! lowest power level of the given events. + bool hasEnoughPowerLevel(const std::vector<mtx::events::EventType> &eventTypes, + const std::string &room_id, + const std::string &user_id); + //! Retrieves the saved room avatar. QImage getRoomAvatar(const QString &id); QImage getRoomAvatar(const std::string &id);