diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-03-31 18:42:38 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-03-31 18:42:38 +0900 |
commit | 3f449c8773af6183c14b9c40ff1951a565bc1e67 (patch) | |
tree | bc7a15c6835f6e0db66756f0b0a404b043582210 | |
parent | 07827998c5ffe495ce83e4b1034d9e016f7296e8 (diff) | |
download | libquotient-3f449c8773af6183c14b9c40ff1951a565bc1e67.tar.gz libquotient-3f449c8773af6183c14b9c40ff1951a565bc1e67.zip |
Room::updateData(): recalculate room name only when state changes occur
-rw-r--r-- | lib/room.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index b0c898fb..e69d6de1 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1339,7 +1339,6 @@ void Room::updateData(SyncRoomData&& data, bool fromCache) emit memberListChanged(); roomChanges |= d->setSummary(move(data.summary)); - d->updateDisplayname(); for( auto&& ephemeralEvent: data.ephemeral ) roomChanges |= processEphemeralEvent(move(ephemeralEvent)); @@ -1364,6 +1363,7 @@ void Room::updateData(SyncRoomData&& data, bool fromCache) } if (roomChanges != Change::NoChange) { + d->updateDisplayname(); emit changed(roomChanges); if (!fromCache) connection()->saveRoomState(this); |