In my true love's dying breath, she whispered to me 'never commit with descriptive messages'. So I kept her promise.

This commit is contained in:
2026-01-30 21:31:33 +00:00
parent 69bee8766e
commit 19b43345f7
4 changed files with 119 additions and 52 deletions

View File

@@ -80,29 +80,33 @@ func generateMessageWidget(p stanza.Packet) gtk.Widgetter {
// authorBox.Append(im)
mo, _ := mucmembers.Load(jid.MustParse(m.From).Bare().String())
mm := mo.(mucUnit)
mmm := mm.Members
mmmm, ok := mmm.Load(ocu.ID)
if ok {
pres := mmmm.(stanza.Presence)
if m.Type == stanza.MessageTypeGroupchat {
mo, _ := mucmembers.Load(jid.MustParse(m.From).Bare().String())
mm := mo.(mucUnit)
mmm := mm.Members
mmmm, ok := mmm.Load(ocu.ID)
if ok {
pres := mmmm.(stanza.Presence)
var vu VCardUpdate
pres.Get(&vu)
if vu.Photo != "" {
im := getAvatar(m.From, vu.Photo)
im.SetPixelSize(40)
im.AddCSSClass("author_img")
authorBox.Append(im)
var vu VCardUpdate
pres.Get(&vu)
if vu.Photo != "" {
im := getAvatar(m.From, vu.Photo)
im.SetPixelSize(40)
im.AddCSSClass("author_img")
authorBox.Append(im)
} else {
im := newImageFromPath("debug.png")
im.SetPixelSize(40)
im.AddCSSClass("author_img")
authorBox.Append(im)
}
} else {
im := newImageFromPath("debug.png")
im.SetPixelSize(40)
im.AddCSSClass("author_img")
authorBox.Append(im)
}
} else {
im := newImageFromPath("debug.png")
im.SetPixelSize(40)
im.AddCSSClass("author_img")
}
al := gtk.NewLabel(jid.MustParse(m.From).Resourcepart())