mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
Add full MXID to message avatar/sender
This commit is contained in:
parent
9ad5dd752c
commit
308a215349
@ -75,7 +75,7 @@ export class BaseMessageTile extends SimpleTile {
|
||||
}
|
||||
|
||||
get avatarTitle() {
|
||||
return this.displayName;
|
||||
return this.sender;
|
||||
}
|
||||
|
||||
get date() {
|
||||
|
@ -31,7 +31,11 @@ export function renderStaticAvatar(vm, size, extraClasses = undefined) {
|
||||
avatarClasses += ` ${extraClasses}`;
|
||||
}
|
||||
const avatarContent = hasAvatar ? renderImg(vm, size) : text(vm.avatarLetter);
|
||||
const avatar = tag.div({className: avatarClasses, "data-testid": "avatar"}, [avatarContent]);
|
||||
const avatar = tag.div({
|
||||
className: avatarClasses,
|
||||
title: vm.avatarTitle,
|
||||
"data-testid": "avatar",
|
||||
}, [avatarContent]);
|
||||
if (hasAvatar) {
|
||||
setAttribute(avatar, "data-avatar-letter", vm.avatarLetter);
|
||||
setAttribute(avatar, "data-avatar-color", vm.avatarColorNumber);
|
||||
|
Loading…
Reference in New Issue
Block a user