do not download svg images on windows

This commit is contained in:
2026-01-31 10:25:09 +00:00
parent ca4548d3b0
commit 3962f1f17d

View File

@@ -14,6 +14,7 @@ import (
"mellium.im/xmpp/jid"
"os"
"path/filepath"
"runtime"
)
func generatePresenceWidget(p stanza.Packet) gtk.Widgetter {
@@ -206,7 +207,7 @@ func getAvatar(j, hash string) *gtk.Image { // TODO: This function probably shou
}
base64_data := card.Photo.Binval
if card.Photo.Binval == "" {
if card.Photo.Binval == "" || (card.Photo.Type == "image/svg+xml" && runtime.GOOS == "windows") {
return newImageFromPath("debug.png")
}