diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-06 19:58:29 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-06 19:58:29 +0900 |
commit | 01cce0e39d255cbcf39f6a1aa58c6d7ab1d995d1 (patch) | |
tree | 217c33312e9b9832c0c392f7416fcfc38de19689 /lib/events/roommemberevent.h | |
parent | 5b8079ca3d35360b7d98814654f37885f21bcb7e (diff) | |
download | libquotient-01cce0e39d255cbcf39f6a1aa58c6d7ab1d995d1.tar.gz libquotient-01cce0e39d255cbcf39f6a1aa58c6d7ab1d995d1.zip |
Convenience: StateKeyKey, StateKeyKeyL, basicStateEventJson()
Diffstat (limited to 'lib/events/roommemberevent.h')
-rw-r--r-- | lib/events/roommemberevent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/roommemberevent.h b/lib/events/roommemberevent.h index b8224033..4490fe65 100644 --- a/lib/events/roommemberevent.h +++ b/lib/events/roommemberevent.h @@ -76,7 +76,7 @@ namespace QMatrixClient MembershipType membership() const { return content().membership; } QString userId() const - { return fullJson()["state_key"_ls].toString(); } + { return fullJson()[StateKeyKeyL].toString(); } bool isDirect() const { return content().isDirect; } QString displayName() const { return content().displayName; } QUrl avatarUrl() const { return content().avatarUrl; } |