AV hash custom nicks

This commit is contained in:
2026-07-16 09:05:03 +01:00
parent ede81d551c
commit a3702a900c
3 changed files with 47 additions and 3 deletions
+21 -1
View File
@@ -150,11 +150,31 @@ func switchToTab(jid string, w *gtk.Window) {
id := JidMustParse(u.From).Resource
//}
nick_label := gtk.NewLabel(JidMustParse(u.From).Resource)
custom_nick, ok := loadedConfig.CustomNicks[ocu.ID]
var custom_nick string
var vcu VCardUpdate
ok = u.Get(&vcu)
if ok {
av_nick, ok := loadedConfig.CustomNicksAV[vcu.Photo]
if ok {
custom_nick = av_nick
}
}
ocu_nick, ok := loadedConfig.CustomNicks[ocu.ID]
if ok {
custom_nick = ocu_nick
}
if custom_nick != "" {
nick_label.SetText(custom_nick)
}
nick_label.SetEllipsize(pango.EllipsizeEnd)
nick_label.AddCSSClass(mu.MucUserItem.Role)
if mu.MucUserItem.Role == "visitor" {