mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 11:36:24 +01:00
Add previous name in name change announcement
- Fixes issue 269 in which the announcement generated when a member changes their name would show as : <new_name> changed their name to <new_name> instead of: <old_name> changed their name to <new_name> Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
5a4afc8f4b
commit
3d1ddccbd8
@ -33,7 +33,7 @@ export class RoomMemberTile extends SimpleTile {
|
||||
if (content.avatar_url !== prevContent.avatar_url) {
|
||||
return `${senderName} changed their avatar`;
|
||||
} else if (content.displayname !== prevContent.displayname) {
|
||||
return `${senderName} changed their name to ${content.displayname}`;
|
||||
return `${prevContent.displayname} changed their name to ${content.displayname}`;
|
||||
}
|
||||
} else if (membership === "join") {
|
||||
return `${targetName} joined the room`;
|
||||
|
Loading…
Reference in New Issue
Block a user