aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roommemberevent.h
diff options
context:
space:
mode:
authorBlack Hat <bhat@encom.eu.org>2019-12-29 21:42:10 +0800
committerBlack Hat <bhat@encom.eu.org>2019-12-29 21:42:10 +0800
commit7d55e22ee3465e75e5ac7750bb1d205eb555761d (patch)
tree36f7fcef622c44aca8d46514395126280111ed8a /lib/events/roommemberevent.h
parente0c01b6fee5027211bd44a39860e40a2b7b226ad (diff)
parent16d6700950f5f0ebd71481efd5e1a24f04e3c651 (diff)
downloadlibquotient-7d55e22ee3465e75e5ac7750bb1d205eb555761d.tar.gz
libquotient-7d55e22ee3465e75e5ac7750bb1d205eb555761d.zip
Merge branch 'master' of https://github.com/quotient-im/libQuotient into bhat-powerlevel
Diffstat (limited to 'lib/events/roommemberevent.h')
-rw-r--r--lib/events/roommemberevent.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/events/roommemberevent.h b/lib/events/roommemberevent.h
index 6a34fd7f..0ca439e1 100644
--- a/lib/events/roommemberevent.h
+++ b/lib/events/roommemberevent.h
@@ -40,6 +40,7 @@ public:
bool isDirect = false;
QString displayName;
QUrl avatarUrl;
+ QString reason;
protected:
void fillJson(QJsonObject* o) const override;
@@ -56,8 +57,8 @@ public:
explicit RoomMemberEvent(const QJsonObject& obj) : StateEvent(typeId(), obj)
{}
- [[deprecated("Use RoomMemberEvent(userId, contentArgs) "
- "instead")]] RoomMemberEvent(MemberEventContent&& c)
+ [[deprecated("Use RoomMemberEvent(userId, contentArgs) instead")]]
+ RoomMemberEvent(MemberEventContent&& c)
: StateEvent(typeId(), matrixTypeId(), QString(), c)
{}
template <typename... ArgTs>
@@ -85,6 +86,8 @@ public:
bool isDirect() const { return content().isDirect; }
QString displayName() const { return content().displayName; }
QUrl avatarUrl() const { return content().avatarUrl; }
+ QString reason() const { return content().reason; }
+ bool changesMembership() const;
bool isInvite() const;
bool isJoin() const;
bool isLeave() const;