aboutsummaryrefslogtreecommitdiff
path: root/telegram/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegram/client.go')
-rw-r--r--telegram/client.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/telegram/client.go b/telegram/client.go
index 6f6d719..6033c7c 100644
--- a/telegram/client.go
+++ b/telegram/client.go
@@ -64,6 +64,8 @@ type Client struct {
lastMsgHashes map[int64]uint64
msgHashSeed maphash.Seed
+ mucResources map[int64]map[string]bool
+
locks clientLocks
SendMessageLock sync.Mutex
}
@@ -73,6 +75,7 @@ type clientLocks struct {
chatMessageLocks map[int64]*sync.Mutex
resourcesLock sync.Mutex
outboxLock sync.Mutex
+ mucResourcesLock sync.Mutex
lastMsgHashesLock sync.Mutex
authorizerReadLock sync.Mutex
@@ -133,6 +136,7 @@ func NewClient(conf config.TelegramConfig, jid string, component *xmpp.Component
Session: session,
resources: make(map[string]bool),
outbox: make(map[string]string),
+ mucResources: make(map[int64]map[string]bool),
content: &conf.Content,
cache: cache.NewCache(),
options: options,