Use contextEntry and pass avatarUrl

This commit is contained in:
RMidhunSuresh 2021-12-07 16:09:46 +05:30
parent 31573b3599
commit 540aa6c546

View file

@ -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
}
};
}