lambda is free of this insane bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user