package main import ( "github.com/diamondburned/gotk4/pkg/gtk/v4" "mellium.im/xmpp/color" "sync" ) type chatTab struct { isMuc bool msgs *gtk.ListBox } type lambdaConfig struct { Server string Username string Resource string Password string Insecure bool Nick string JoinBookmarks bool CVD color.CVD } type mucUnit struct { // key: Resource // value: last user presence Members sync.Map } type userUnit struct { // key: Resource // value: last presence of this device Devices sync.Map }