2026-01-30 15:56:58 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
|
|
|
|
"sync"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type chatTab struct {
|
|
|
|
|
isMuc bool
|
|
|
|
|
msgs *gtk.ListBox
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type lambdaConfig struct {
|
|
|
|
|
Server string
|
|
|
|
|
Username string
|
|
|
|
|
Password string
|
|
|
|
|
Insecure bool
|
|
|
|
|
Nick string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type mucUnit struct {
|
|
|
|
|
// key: OccupantID
|
|
|
|
|
// value: last user presence
|
|
|
|
|
Members sync.Map
|
|
|
|
|
}
|
2026-01-30 21:31:33 +00:00
|
|
|
|
|
|
|
|
type userUnit struct {
|
|
|
|
|
// key: Resource
|
|
|
|
|
// value: last presence of this device
|
|
|
|
|
Devices sync.Map
|
|
|
|
|
}
|