diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-03 12:14:10 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-03 21:22:50 +0900 |
commit | 853fda2e7942ffb3bc8051e6411faa23cff6f3c2 (patch) | |
tree | bf72fa7866348df46fe46e189878104a7fc158ef /lib/events/roommemberevent.h | |
parent | 37700bbf2df8b96c82a193c25764d9020b1140e9 (diff) | |
download | libquotient-853fda2e7942ffb3bc8051e6411faa23cff6f3c2.tar.gz libquotient-853fda2e7942ffb3bc8051e6411faa23cff6f3c2.zip |
Cleanup
Diffstat (limited to 'lib/events/roommemberevent.h')
-rw-r--r-- | lib/events/roommemberevent.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/events/roommemberevent.h b/lib/events/roommemberevent.h index 89b970c9..5f1e578d 100644 --- a/lib/events/roommemberevent.h +++ b/lib/events/roommemberevent.h @@ -56,12 +56,14 @@ namespace QMatrixClient using MembershipType = MemberEventContent::MembershipType; + explicit RoomMemberEvent(Type type, const QJsonObject& obj) + : StateEvent(type, obj) + { } RoomMemberEvent(MemberEventContent&& c) : StateEvent(Type::RoomMember, c) { } explicit RoomMemberEvent(const QJsonObject& obj) - : StateEvent(Type::RoomMember, obj) -// , _userId(obj["state_key"].toString()) + : RoomMemberEvent(Type::RoomMember, obj) { } MembershipType membership() const { return content().membership; } @@ -72,7 +74,6 @@ namespace QMatrixClient QUrl avatarUrl() const { return content().avatarUrl; } private: -// QString _userId; REGISTER_ENUM(MembershipType) }; } // namespace QMatrixClient |