aboutsummaryrefslogtreecommitdiff
path: root/user.cpp
diff options
context:
space:
mode:
authorFelix Rohrbach <fxrh@gmx.de>2016-05-03 19:59:47 +0200
committerFelix Rohrbach <fxrh@gmx.de>2016-05-03 19:59:47 +0200
commitfc95edb7a63bcacb02418c55e15a1aa21ac080cd (patch)
tree737052a0675b5ecce7c3d2902f2278400f13885e /user.cpp
parent22a675a55ae2dac33a680531f4003fbfeb24ec39 (diff)
parent9a415111fefd0d21f8b4abbbe9af9066d78c971b (diff)
downloadlibquotient-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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/user.cpp b/user.cpp
index 2cc81fd9..f9529db3 100644
--- a/user.cpp
+++ b/user.cpp
@@ -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() )
{