Merge pull request #285 from MidhunSureshR/fix-269
Add previous name in name change announcement
This commit is contained in:
commit
5db3b28e3a
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export class RoomMemberTile extends SimpleTile {
|
||||||
if (content.avatar_url !== prevContent.avatar_url) {
|
if (content.avatar_url !== prevContent.avatar_url) {
|
||||||
return `${senderName} changed their avatar`;
|
return `${senderName} changed their avatar`;
|
||||||
} else if (content.displayname !== prevContent.displayname) {
|
} 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") {
|
} else if (membership === "join") {
|
||||||
return `${targetName} joined the room`;
|
return `${targetName} joined the room`;
|
||||||
|
|
Reference in a new issue