diff options
author | Adasauce <adasauce@with.parts> | 2020-02-28 20:27:51 -0400 |
---|---|---|
committer | Adasauce <adasauce@with.parts> | 2020-03-03 15:06:52 -0400 |
commit | ed4bb1a576836e98b0535891773570cf7603d434 (patch) | |
tree | f0a0ce413a1a639ab491a60c2b7da94444dd1523 /src/timeline/TimelineModel.h | |
parent | Translated using Weblate (English) (diff) | |
download | nheko-ed4bb1a576836e98b0535891773570cf7603d434.tar.xz |
Add support for more room events in timeline
Diffstat (limited to '')
-rw-r--r-- | src/timeline/TimelineModel.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/timeline/TimelineModel.h b/src/timeline/TimelineModel.h index f06de5d9..15111f0a 100644 --- a/src/timeline/TimelineModel.h +++ b/src/timeline/TimelineModel.h @@ -35,17 +35,17 @@ enum EventType /// m.room.canonical_alias CanonicalAlias, /// m.room.create - Create, + RoomCreate, /// m.room.encrypted. Encrypted, /// m.room.encryption. Encryption, /// m.room.guest_access - GuestAccess, + RoomGuestAccess, /// m.room.history_visibility - HistoryVisibility, + RoomHistoryVisibility, /// m.room.join_rules - JoinRules, + RoomJoinRules, /// m.room.member Member, /// m.room.name @@ -152,6 +152,7 @@ public: State, IsEncrypted, ReplyTo, + RoomId, RoomName, RoomTopic, Dump, @@ -170,6 +171,10 @@ public: Q_INVOKABLE QString formatDateSeparator(QDate date) const; Q_INVOKABLE QString formatTypingUsers(const std::vector<QString> &users, QColor bg); Q_INVOKABLE QString formatMemberEvent(QString id); + Q_INVOKABLE QString formatJoinRuleEvent(QString id); + Q_INVOKABLE QString formatHistoryVisibilityEvent(QString id); + Q_INVOKABLE QString formatGuestAccessEvent(QString id); + Q_INVOKABLE QString formatPowerLevelEvent(QString id); Q_INVOKABLE QString escapeEmoji(QString str) const; Q_INVOKABLE void viewRawMessage(QString id) const; |