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:48:56 +0900 |
commit | 1cc9a93bb403ba50aa80524bc9d9dae44241941e (patch) | |
tree | e91dae9074f7f707c99d1d6cea982463a3bcd8f8 | |
parent | 27ba75b458d2418051b170eb811ab88c00c336db (diff) | |
download | libquotient-1cc9a93bb403ba50aa80524bc9d9dae44241941e.tar.gz libquotient-1cc9a93bb403ba50aa80524bc9d9dae44241941e.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 bf51584d..746dd688 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1346,7 +1346,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)); @@ -1371,6 +1370,7 @@ void Room::updateData(SyncRoomData&& data, bool fromCache) } if (roomChanges != Change::NoChange) { + d->updateDisplayname(); emit changed(roomChanges); if (!fromCache) connection()->saveRoomState(this); |