forked from mystiq/hydrogen-web
Use contextEntry and pass avatarUrl
This commit is contained in:
parent
31573b3599
commit
540aa6c546
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue