diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-27 13:26:28 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-27 13:26:28 +0900 |
commit | 9be5c32d812a55ca55e1cf80d8e29fe593c85a62 (patch) | |
tree | dc9558f46d74034fe4a1e743111b672f41962244 /lib/user.cpp | |
parent | 12dc0570e2467619ef8c8b22fd2fb4a7419c92e4 (diff) | |
download | libquotient-9be5c32d812a55ca55e1cf80d8e29fe593c85a62.tar.gz libquotient-9be5c32d812a55ca55e1cf80d8e29fe593c85a62.zip |
User::processEvent: fix bridge postfix not being stripped
Closes #197.
Diffstat (limited to 'lib/user.cpp')
-rw-r--r-- | lib/user.cpp | 4 |
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); } } |