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
+3
View File
@@ -63,6 +63,8 @@ type TelegramConfig struct {
CreateLimit int `yaml:"create_limit"`
DirectChats bool `yaml:"direct_chats"`
} `yaml:"sync"`
AlwaysCustomEmojiReaction bool `yaml:"always_custom_emoji_reaction"`
}
func (c TelegramConfig) ShouldBridge(participantCount int) bool {
@@ -96,6 +98,7 @@ func upgradeConfig(helper up.Helper) {
helper.Copy(up.Int, "sync", "update_limit")
helper.Copy(up.Int, "sync", "create_limit")
helper.Copy(up.Bool, "sync", "direct_chats")
helper.Copy(up.Bool, "always_custom_emoji_reaction")
}
func (tg *TelegramConnector) GetConfig() (example string, data any, upgrader up.Upgrader) {