Merge pull request #285 from MidhunSureshR/fix-269

Add previous name in name change announcement
This commit is contained in:
Bruno Windels 2021-03-23 10:22:02 +00:00 committed by GitHub
commit 5db3b28e3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`;