aboutsummaryrefslogtreecommitdiff
path: root/user.cpp
diff options
context:
space:
mode:
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() )
{