diff options
Diffstat (limited to 'include/RoomState.h')
-rw-r--r-- | include/RoomState.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/RoomState.h b/include/RoomState.h index 57955e56..db1cdc68 100644 --- a/include/RoomState.h +++ b/include/RoomState.h @@ -41,6 +41,9 @@ namespace events = matrix::events; class RoomState { public: + RoomState(); + RoomState(const QJsonArray &events); + // Calculate room data that are not immediatly accessible. Like room name and // avatar. // @@ -71,7 +74,8 @@ public: events::StateEvent<events::TopicEventContent> topic; // Contains the m.room.member events for all the joined users. - QMap<QString, events::StateEvent<events::MemberEventContent>> memberships; + using UserID = QString; + QMap<UserID, events::StateEvent<events::MemberEventContent>> memberships; private: QUrl avatar_; |