capabilities: add default emoji list hash to ID

The list can change, so it should change the ID too
This commit is contained in:
Tulir Asokan
2025-01-14 14:57:56 +02:00
parent 571152cb41
commit b158ba6b8b
+3
View File
@@ -173,6 +173,9 @@ func (t *TelegramClient) GetCapabilities(ctx context.Context, portal *bridgev2.P
if reactions == nil {
baseID += "+reactions_any"
feat.AllowedReactions, feat.CustomEmojiReactions = t.getAvailableReactionsForCapability(ctx)
if len(feat.AllowedReactions) > 0 {
baseID += "+any_list_" + hashEmojiList(feat.AllowedReactions)
}
} else if len(reactions) == 0 {
baseID += "+reactions_none"
feat.Reaction = event.CapLevelRejected