[desktop] Force <img> elements to use Angular HttpClient for image downloads (bypassing WebView)

This commit is contained in:
Alexandr Stelnykovych
2025-04-17 17:16:38 +03:00
parent d11bc077cf
commit 76289610ee
5 changed files with 9 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
<span *ngIf="!src && !isIgnoredProfile">
{{letter}}
</span>
<img [attr.src]="src" *ngIf="!!src" loading="lazy">
<img [attr.src]="src | httpImgSrc | async" *ngIf="!!src">
<svg *ngIf="!src && isIgnoredProfile" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="w-full h-full text-gray-700">
<path stroke-linecap="round" stroke-linejoin="round"