diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-27 11:40:03 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-24 15:06:31 +0900 |
commit | 4e31b0371cea6441dc4281aaa28a9b693a751454 (patch) | |
tree | 2ac73a02fc3e59649ab1ced4613611bcc5f3ff8f /events/roommemberevent.h | |
parent | 08fb435749f33ee5d266bbc2ea63c7c42169be97 (diff) | |
download | libquotient-4e31b0371cea6441dc4281aaa28a9b693a751454.tar.gz libquotient-4e31b0371cea6441dc4281aaa28a9b693a751454.zip |
MemberEventContent/RoomMemberEvent: parse and expose is_direct
Diffstat (limited to 'events/roommemberevent.h')
-rw-r--r-- | events/roommemberevent.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/events/roommemberevent.h b/events/roommemberevent.h index b9ff0d70..89b970c9 100644 --- a/events/roommemberevent.h +++ b/events/roommemberevent.h @@ -38,6 +38,7 @@ namespace QMatrixClient explicit MemberEventContent(const QJsonObject& json); MembershipType membership; + bool isDirect = false; QString displayName; QUrl avatarUrl; @@ -66,6 +67,7 @@ namespace QMatrixClient MembershipType membership() const { return content().membership; } QString userId() const { return originalJsonObject().value("state_key").toString(); } + bool isDirect() const { return content().isDirect; } QString displayName() const { return content().displayName; } QUrl avatarUrl() const { return content().avatarUrl; } |