matrixfmt: add support for sending pre-bridged custom emojis in text

This commit is contained in:
Tulir Asokan
2026-03-29 14:25:23 +03:00
parent 5d05d7ab05
commit b6aff6784f
6 changed files with 31 additions and 5 deletions
+1
View File
@@ -329,6 +329,7 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge
},
}
client.matrixParser = &matrixfmt.HTMLParser{
Store: tc.Store,
GetGhostDetails: func(ctx context.Context, ui id.UserID) (networkid.UserID, string, int64, bool) {
if userID, ok := tc.Bridge.Matrix.ParseGhostMXID(ui); !ok {
return "", "", 0, false