add code to display profiles in feed, but deactivate it for now

This commit is contained in:
2024-04-20 19:53:11 -06:00
parent c748869c44
commit 7cbdc7a099
7 changed files with 53 additions and 11 deletions

View File

@@ -17,9 +17,12 @@ export default class EntityIcon extends Vue {
generateIcon() {
const imageUrl = this.contact?.profileImageUrl || this.profileImageUrl;
if (imageUrl) {
return `<img src="${imageUrl}" alt="avatar" width="${this.iconSize}" height="${this.iconSize}" />`;
return `<img src="${imageUrl}" class="rounded" width="${this.iconSize}" height="${this.iconSize}" />`;
} else {
const identifier = this.contact?.did || this.entityId;
if (!identifier) {
return `<img src="../src/assets/blank-square.svg" class="rounded" width="${this.iconSize}" height="${this.iconSize}" />`;
}
const options: StyleOptions<object> = {
seed: (identifier as string) || "",
size: this.iconSize,