aboutsummaryrefslogtreecommitdiff
path: root/lib/user.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/user.cpp')
-rw-r--r--lib/user.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/user.cpp b/lib/user.cpp
index 6143a061..f469128c 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -389,12 +389,12 @@ void User::processEvent(RoomMemberEvent* event, const Room* room)
// FIXME: the hint doesn't work for bridged users
auto oldNameHint =
d->nameForRoom(room, event->prevContent()->displayName);
- updateName(event->displayName(), oldNameHint, room);
+ updateName(newName, oldNameHint, room);
updateAvatarUrl(event->avatarUrl(),
d->avatarUrlForRoom(room, event->prevContent()->avatarUrl),
room);
} else {
- updateName(event->displayName(), room);
+ updateName(newName, room);
updateAvatarUrl(event->avatarUrl(), d->avatarUrlForRoom(room), room);
}
}