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() {
|
||||
const entry = this._entry.relatedEntry;
|
||||
const entry = this._entry.contextEntry;
|
||||
if (!entry) {
|
||||
return {};
|
||||
}
|
||||
|
@ -71,7 +71,8 @@ export class BaseTextTile extends BaseMessageTile {
|
|||
sender: entry.displayName,
|
||||
avatar: {
|
||||
colorNumber: getIdentifierColorNumber(entry.sender),
|
||||
initial: avatarInitials(entry.displayName)
|
||||
initial: avatarInitials(entry.displayName),
|
||||
avatarUrl: entry.avatarUrl
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue