aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorRam Nad <ramnad1999@gmail.com>2020-03-20 15:06:21 +0530
committerRam Nad <ramnad1999@gmail.com>2020-03-20 15:06:21 +0530
commitf9dee85c5f8eb35df14a29d011c3cb84915962a6 (patch)
treeb35e93f1158aa4d2414cc42c501142fed85d36e3 /lib/room.cpp
parent57ed7c21829347bd553a481becc6484164419c18 (diff)
downloadlibquotient-f9dee85c5f8eb35df14a29d011c3cb84915962a6.tar.gz
libquotient-f9dee85c5f8eb35df14a29d011c3cb84915962a6.zip
emit nameChanged() on AliasesChange
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 77b4a1e5..5f96a5f9 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -108,7 +108,6 @@ public:
QHash<StateEventKey, const StateEventBase*> currentState;
/// Servers with aliases for this room except the one of the local user
/// \sa Room::remoteAliases
-
QSet<QString> aliasServers;
Timeline timeline;
@@ -1423,7 +1422,7 @@ void Room::updateData(SyncRoomData&& data, bool fromCache)
if (roomChanges & TopicChange)
emit topicChanged();
- if (roomChanges & NameChange)
+ if (roomChanges & (NameChange | AliasesChange))
emit namesChanged(this);
if (roomChanges & MembersChange)
@@ -1703,8 +1702,6 @@ void Room::setName(const QString& newName)
d->requestSetState<RoomNameEvent>(newName);
}
-// Change might be required here as well.
-// Not sure what will be best
void Room::setCanonicalAlias(const QString& newAlias)
{
d->requestSetState<RoomCanonicalAliasEvent>(newAlias, altAliases());