From e3bb26aee1f3d96b99fd5e880b106287d46eb657 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 30 Apr 2026 16:55:03 +0300 Subject: [PATCH] handlematrix: allow bridging cached custom emoji reactions with any scheme --- pkg/connector/handlematrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/connector/handlematrix.go b/pkg/connector/handlematrix.go index 1a013347..8fe05fdf 100644 --- a/pkg/connector/handlematrix.go +++ b/pkg/connector/handlematrix.go @@ -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 {