diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-29 18:29:56 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-29 18:29:56 +0900 |
commit | b5d962b0f5dcd3497db8a4b3bada46bb666d08e1 (patch) | |
tree | 10d6e3add6b73cf9e4cecdeca08c72b490c50f7a /lib/room.h | |
parent | 4ced9792f27ed3d891c1f7772ae30d9fe452dd79 (diff) | |
parent | f5af25428212f139c59941bb294a184242c8b5e0 (diff) | |
download | libquotient-b5d962b0f5dcd3497db8a4b3bada46bb666d08e1.tar.gz libquotient-b5d962b0f5dcd3497db8a4b3bada46bb666d08e1.zip |
Merge branch 'master' into kitsune-gtad
Diffstat (limited to 'lib/room.h')
-rw-r--r-- | lib/room.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -123,6 +123,10 @@ namespace QMatrixClient using rev_iter_t = Timeline::const_reverse_iterator; using timeline_iter_t = Timeline::const_iterator; + using AccountDataMap = std::conditional_t< + QT_VERSION >= QT_VERSION_CHECK(5, 5, 0), + QVariantHash, QVariantMap>; + Room(Connection* connection, QString id, JoinState initialJoinState); ~Room() override; @@ -269,7 +273,7 @@ namespace QMatrixClient * stored on the server. Tags and read markers cannot be retrieved * using this method _yet_. */ - QVariantHash accountData(const QString& type) const; + AccountDataMap accountData(const QString& type) const; QStringList tagNames() const; TagsMap tags() const; |