diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-07-09 15:36:15 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-07-09 15:36:28 +0200 |
commit | 11fa4821aa4ff93849b16dd3c9a7575533f6f296 (patch) | |
tree | b1952709198aaa9a2c376ad4e6efea786c1cd2c1 /src/timeline/TimelineModel.h | |
parent | Translated using Weblate (French) (diff) | |
download | nheko-11fa4821aa4ff93849b16dd3c9a7575533f6f296.tar.xz |
Support rendering policy rules
Diffstat (limited to '')
-rw-r--r-- | src/timeline/TimelineModel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.h b/src/timeline/TimelineModel.h index dcafae80..6d424981 100644 --- a/src/timeline/TimelineModel.h +++ b/src/timeline/TimelineModel.h @@ -116,6 +116,12 @@ enum EventType ImagePackInAccountData, //! m.image_pack.rooms, currently im.ponies.emote_rooms ImagePackRooms, + // m.policy.rule.user + PolicyRuleUser, + // m.policy.rule.room + PolicyRuleRoom, + // m.policy.rule.server + PolicyRuleServer, // m.space.parent SpaceParent, // m.space.child @@ -264,6 +270,7 @@ public: Q_INVOKABLE QString formatGuestAccessEvent(const QString &id); Q_INVOKABLE QString formatPowerLevelEvent(const QString &id); Q_INVOKABLE QString formatImagePackEvent(const QString &id); + Q_INVOKABLE QString formatPolicyRule(const QString &id); Q_INVOKABLE QVariantMap formatRedactedEvent(const QString &id); Q_INVOKABLE void viewRawMessage(const QString &id); |