aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-03-31 18:41:12 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-03-31 18:48:55 +0900
commit27ba75b458d2418051b170eb811ab88c00c336db (patch)
tree524b3efd8606bbc912c7575fc57cca9465eb50d1 /lib
parent91e70b1242e6e40170285bd29fdfd7c82fd45691 (diff)
downloadlibquotient-27ba75b458d2418051b170eb811ab88c00c336db.tar.gz
libquotient-27ba75b458d2418051b170eb811ab88c00c336db.zip
Room::refreshDisplayName() - for debugging purposes only
Clients should not need to call this method explicitly.
Diffstat (limited to 'lib')
-rw-r--r--lib/room.cpp5
-rw-r--r--lib/room.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 789800c6..bf51584d 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -389,6 +389,11 @@ QString Room::displayName() const
return d->displayname;
}
+void Room::refreshDisplayName()
+{
+ d->updateDisplayname();
+}
+
QString Room::topic() const
{
return d->getCurrentState<RoomTopicEvent>()->topic();
diff --git a/lib/room.h b/lib/room.h
index 85c67bfb..8440543e 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -410,6 +410,9 @@ namespace QMatrixClient
void setAliases(const QStringList& aliases);
void setTopic(const QString& newTopic);
+ /// You shouldn't normally call this method; it's here for debugging
+ void refreshDisplayName();
+
void getPreviousContent(int limit = 10);
void inviteToRoom(const QString& memberId);