reactions: use allowed reactions when possible

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-09-25 16:43:13 -06:00
parent 81c913bdd3
commit ce1c28832e
6 changed files with 81 additions and 4 deletions
+6
View File
@@ -44,9 +44,15 @@ type TelegramClient struct {
updatesManager *updates.Manager
clientCancel context.CancelFunc
appConfigLock sync.Mutex
appConfig map[string]any
appConfigHash int
availableReactionsLock sync.Mutex
availableReactions map[string]struct{}
availableReactionsHash int
availableReactionsFetched time.Time
telegramFmtParams *telegramfmt.FormatParams
matrixParser *matrixfmt.HTMLParser