diff options
author | Felix Rohrbach <fxrh@gmx.de> | 2016-05-03 19:59:47 +0200 |
---|---|---|
committer | Felix Rohrbach <fxrh@gmx.de> | 2016-05-03 19:59:47 +0200 |
commit | fc95edb7a63bcacb02418c55e15a1aa21ac080cd (patch) | |
tree | 737052a0675b5ecce7c3d2902f2278400f13885e /user.cpp | |
parent | 22a675a55ae2dac33a680531f4003fbfeb24ec39 (diff) | |
parent | 9a415111fefd0d21f8b4abbbe9af9066d78c971b (diff) | |
download | libquotient-fc95edb7a63bcacb02418c55e15a1aa21ac080cd.tar.gz libquotient-fc95edb7a63bcacb02418c55e15a1aa21ac080cd.zip |
Merge pull request #4 from KitsuneRal/user-room-names2
Render display names of users and rooms according to the spec - take 2
Diffstat (limited to 'user.cpp')
-rw-r--r-- | user.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -114,8 +114,9 @@ void User::processEvent(Event* event) RoomMemberEvent* e = static_cast<RoomMemberEvent*>(event); if( d->name != e->displayName() ) { + const auto oldName = d->name; d->name = e->displayName(); - emit nameChanged(); + emit nameChanged(this, oldName); } if( d->avatarUrl != e->avatarUrl() ) { |