From 07827998c5ffe495ce83e4b1034d9e016f7296e8 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 31 Mar 2019 18:41:12 +0900 Subject: Room::refreshDisplayName() - for debugging purposes only Clients should not need to call this method explicitly. --- lib/room.cpp | 5 +++++ lib/room.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/room.cpp b/lib/room.cpp index 0305cf7b..b0c898fb 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()->topic(); diff --git a/lib/room.h b/lib/room.h index 3da2d4e7..adec7650 100644 --- a/lib/room.h +++ b/lib/room.h @@ -408,6 +408,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); -- cgit v1.2.3