imagepack: switch to new shared metadata field

This commit is contained in:
Tulir Asokan
2026-04-27 20:23:06 +03:00
parent 9e1c42a992
commit e6243d8935
7 changed files with 132 additions and 107 deletions
+5 -3
View File
@@ -119,7 +119,8 @@ type TelegramClient struct {
prevReactionPoll map[networkid.PortalKey]time.Time
prevReactionPollLock sync.Mutex
stickerPackCache map[string]map[int64]*tg.Document
stickerPacksByName map[string]*stickerPackCache
stickerPacksByID map[int64]*stickerPackCache
stickerPackCacheLock sync.Mutex
}
@@ -175,8 +176,9 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge
takeoutAccepted: exsync.NewEvent(),
prevReactionPoll: map[networkid.PortalKey]time.Time{},
stickerPackCache: map[string]map[int64]*tg.Document{},
prevReactionPoll: map[networkid.PortalKey]time.Time{},
stickerPacksByName: map[string]*stickerPackCache{},
stickerPacksByID: map[int64]*stickerPackCache{},
recentMessageRooms: exsync.NewRingBuffer[networkid.MessageID, networkid.PortalKey](32),