mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Use contextEntry and pass avatarUrl
This commit is contained in:
parent
31573b3599
commit
540aa6c546
@ -60,7 +60,7 @@ export class BaseTextTile extends BaseMessageTile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get replyPreviewBody() {
|
get replyPreviewBody() {
|
||||||
const entry = this._entry.relatedEntry;
|
const entry = this._entry.contextEntry;
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -71,7 +71,8 @@ export class BaseTextTile extends BaseMessageTile {
|
|||||||
sender: entry.displayName,
|
sender: entry.displayName,
|
||||||
avatar: {
|
avatar: {
|
||||||
colorNumber: getIdentifierColorNumber(entry.sender),
|
colorNumber: getIdentifierColorNumber(entry.sender),
|
||||||
initial: avatarInitials(entry.displayName)
|
initial: avatarInitials(entry.displayName),
|
||||||
|
avatarUrl: entry.avatarUrl
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user