Commit f74c1db
committed
fix(ui): Use assetUrl as fallback for image thumbnail
This change adds `assetUrl` as a fallback option when determining the image URL for a thumbnail.
The priority is now `thumbUrl`, then `imageUrl`, and finally `assetUrl`. This ensures that an image thumbnail can still be displayed even if the `thumbUrl` and `imageUrl` are not available, by using the local asset URL as a last resort.1 parent fe0bce1 commit f74c1db
File tree
1 file changed
+2
-1
lines changed- packages/stream_chat_flutter/lib/src/attachment/thumbnail
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
0 commit comments