2026-01-30 15:56:58 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
2026-03-15 09:55:26 +00:00
|
|
|
"mellium.im/xmpp/color"
|
2026-01-30 15:56:58 +00:00
|
|
|
"sync"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type chatTab struct {
|
|
|
|
|
isMuc bool
|
|
|
|
|
msgs *gtk.ListBox
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type lambdaConfig struct {
|
2026-02-19 11:28:18 +00:00
|
|
|
Server string
|
|
|
|
|
Username string
|
2026-03-10 16:48:10 +00:00
|
|
|
Resource string
|
2026-02-19 11:28:18 +00:00
|
|
|
Password string
|
|
|
|
|
Insecure bool
|
|
|
|
|
Nick string
|
|
|
|
|
JoinBookmarks bool
|
2026-03-15 09:55:26 +00:00
|
|
|
CVD color.CVD
|
2026-01-30 15:56:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type mucUnit struct {
|
2026-03-15 09:57:08 +00:00
|
|
|
// key: Resource
|
2026-01-30 15:56:58 +00:00
|
|
|
// value: last user presence
|
|
|
|
|
Members sync.Map
|
|
|
|
|
}
|
2026-01-30 21:31:33 +00:00
|
|
|
|
|
|
|
|
type userUnit struct {
|
2026-01-31 15:08:54 +00:00
|
|
|
// key: Resource
|
2026-01-30 21:31:33 +00:00
|
|
|
// value: last presence of this device
|
|
|
|
|
Devices sync.Map
|
|
|
|
|
}
|