lambda is free of this insane bug

This commit is contained in:
2026-07-17 17:15:41 +01:00
parent 120b0c2647
commit 006b43a590
9 changed files with 263 additions and 240 deletions
+5 -7
View File
@@ -6,9 +6,9 @@ import (
"sync"
"context"
"crypto/tls"
"fmt"
"path/filepath"
"crypto/tls"
"github.com/diamondburned/gotk4/pkg/gdk/v4"
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
@@ -139,7 +139,7 @@ func main() {
return charset.NewReaderLabel(c, input)
},
ConnectTimeout: 300,
TLSConfig: &tls.Config{InsecureSkipVerify: loadedConfig.Insecure},
TLSConfig: &tls.Config{InsecureSkipVerify: loadedConfig.Insecure},
},
Jid: loadedConfig.Username + "/" + loadedConfig.Resource,
Credential: xmpp.Password(loadedConfig.Password),
@@ -588,6 +588,7 @@ func main() {
if err == nil {
res, ok := result.Payload.(*stanza.PubSubGeneric)
if ok {
fmt.Printf("%d rooms in bookmarks\n", len(res.Items.List))
for _, item := range res.Items.List {
jid := item.Id
node := item.Any
@@ -1263,11 +1264,11 @@ func activate(app *gtk.Application) {
if JidMustParse(mui.MucUserItem.JID).Bare() == JidMustParse(clientroot.Session.BindJid).Bare() {
if mui.MucUserItem.Role == "visitor" {
win := gtk.NewWindow()
win.SetDefaultSize(1,1)
win.SetDefaultSize(1, 1)
box := gtk.NewBox(gtk.OrientationVertical, 5)
txt := gtk.NewLabel("You are a visitor and do not have voice.\nWould you like to request voice from the moderators of this MUC?")
btn := gtk.NewButtonWithLabel("Request voice")
btn.ConnectClicked(func (){
btn.ConnectClicked(func() {
sendVoiceRequest(client, current)
win.SetVisible(false)
})
@@ -1276,7 +1277,6 @@ func activate(app *gtk.Application) {
win.SetVisible(false)
})
box.Append(txt)
box.Append(btn)
box.Append(dismiss)
@@ -1319,8 +1319,6 @@ func activate(app *gtk.Application) {
exts = append(exts, new_attention)
}
err := sendMessage(client, current, message_type, t, "", "", exts)
if err != nil {
showErrorDialog(err, &window.Window)