mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-20 09:11:38 +01:00
Merge pull request #285 from MidhunSureshR/fix-269
Add previous name in name change announcement
This commit is contained in:
commit
5db3b28e3a
@ -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`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user