mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +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() {
|
get avatarTitle() {
|
||||||
return this.displayName;
|
return this.sender;
|
||||||
}
|
}
|
||||||
|
|
||||||
get date() {
|
get date() {
|
||||||
|
@ -31,7 +31,11 @@ export function renderStaticAvatar(vm, size, extraClasses = undefined) {
|
|||||||
avatarClasses += ` ${extraClasses}`;
|
avatarClasses += ` ${extraClasses}`;
|
||||||
}
|
}
|
||||||
const avatarContent = hasAvatar ? renderImg(vm, size) : text(vm.avatarLetter);
|
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) {
|
if (hasAvatar) {
|
||||||
setAttribute(avatar, "data-avatar-letter", vm.avatarLetter);
|
setAttribute(avatar, "data-avatar-letter", vm.avatarLetter);
|
||||||
setAttribute(avatar, "data-avatar-color", vm.avatarColorNumber);
|
setAttribute(avatar, "data-avatar-color", vm.avatarColorNumber);
|
||||||
|
Loading…
Reference in New Issue
Block a user