aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 25669889..edbc9266 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -632,6 +632,16 @@ void Room::resetHighlightCount()
emit highlightCountChanged(this);
}
+bool Room::hasAccountData(const QString& type) const
+{
+ return d->accountData.contains(type);
+}
+
+QVariantHash Room::accountData(const QString& type) const
+{
+ return d->accountData.value(type);
+}
+
QStringList Room::tagNames() const
{
return d->tags.keys();
@@ -1644,6 +1654,7 @@ void Room::processAccountDataEvent(EventPtr event)
default:
d->accountData[event->jsonType()] =
event->contentJson().toVariantHash();
+ emit accountDataChanged(event->jsonType());
}
}