aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/room.h b/lib/room.h
index 39dee8f5..86a7b245 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -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;