handlematrix: allow bridging cached custom emoji reactions with any scheme

This commit is contained in:
Tulir Asokan
2026-04-30 16:55:03 +03:00
parent 7c2c72bbde
commit e3bb26aee1

View File

@@ -769,7 +769,7 @@ func (tc *TelegramClient) PreHandleMatrixReaction(ctx context.Context, msg *brid
keyNoVariation := variationselector.Remove(msg.Content.RelatesTo.Key)
emojiID := ids.MakeEmojiIDFromEmoticon(msg.Content.RelatesTo.Key)
if strings.HasPrefix(msg.Content.RelatesTo.Key, "mxc://") {
if strings.Contains(msg.Content.RelatesTo.Key, "://") {
if file, err := tc.main.Store.TelegramFile.GetByMXC(ctx, id.ContentURIString(msg.Content.RelatesTo.Key)); err != nil {
return resp, err
} else if file == nil {