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() { 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
} }
}; };
} }