From eeb4b8dc0db0f23b6b3e571c19fc4bfdaa42633c Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Thu, 27 Apr 2023 10:48:13 +0200 Subject: [PATCH] Switch to height 32 for sent custom emotes, as suggested by MSC2545 Change-Id: If59aed6fe9b6af1acfe69db0a89d073558279882 --- .../sdk/internal/session/room/send/pills/TextPillsUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/send/pills/TextPillsUtils.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/send/pills/TextPillsUtils.kt index a74ad62007..eff7a4a622 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/send/pills/TextPillsUtils.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/send/pills/TextPillsUtils.kt @@ -76,7 +76,7 @@ internal class TextPillsUtils @Inject constructor( if (urlSpan.matrixItem is MatrixItem.EmoteItem) { // Note we use the same template for both HTML and MARKDOWN conversion. We do this since markdown inline images are not mighty enough // for custom emotes (i.e., that would drop the data-mx-emoticon tag, which we want to keep). But we can use inline html in markdown. - val imgHtml = "\":${urlSpan.matrixItem.displayName}:\"" + val imgHtml = "\":${urlSpan.matrixItem.displayName}:\"" append(imgHtml) } else { append(String.format(template, urlSpan.matrixItem.id, displayNameResolver.getBestName(urlSpan.matrixItem)))