Removing favicons from proxy

This commit is contained in:
Vitor Pamplona 2023-02-16 19:41:50 -05:00
parent de302eb966
commit 943d4525be
2 changed files with 4 additions and 4 deletions

View File

@ -289,8 +289,8 @@ private fun RelayBadges(baseNote: Note) {
relaysToDisplay.forEach {
val url = it.removePrefix("wss://")
Box(Modifier.size(15.dp).padding(1.dp)) {
AsyncImageProxy(
model = ResizeImage("https://${url}/favicon.ico", 15.dp),
AsyncImage(
model = "https://${url}/favicon.ico",
placeholder = BitmapPainter(RoboHashCache.get(ctx, url)),
fallback = BitmapPainter(RoboHashCache.get(ctx, url)),
error = BitmapPainter(RoboHashCache.get(ctx, url)),

View File

@ -340,8 +340,8 @@ private fun RelayBadges(baseNote: Note) {
Modifier
.size(15.dp)
.padding(1.dp)) {
AsyncImageProxy(
model = ResizeImage("https://${url}/favicon.ico", 15.dp),
AsyncImage(
model = "https://${url}/favicon.ico",
placeholder = BitmapPainter(RoboHashCache.get(ctx, url)),
fallback = BitmapPainter(RoboHashCache.get(ctx, url)),
error = BitmapPainter(RoboHashCache.get(ctx, url)),