Switch to height 32 for sent custom emotes, as suggested by MSC2545

Change-Id: If59aed6fe9b6af1acfe69db0a89d073558279882
This commit is contained in:
SpiritCroc 2023-04-27 10:48:13 +02:00
parent aa34c108b5
commit eeb4b8dc0d
1 changed files with 1 additions and 1 deletions

View File

@ -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 = "<img data-mx-emoticon height=\"18\" src=\"${urlSpan.matrixItem.avatarUrl}\" title=\":${urlSpan.matrixItem.displayName}:\" alt=\":${urlSpan.matrixItem.displayName}:\">"
val imgHtml = "<img data-mx-emoticon height=\"32\" src=\"${urlSpan.matrixItem.avatarUrl}\" title=\":${urlSpan.matrixItem.displayName}:\" alt=\":${urlSpan.matrixItem.displayName}:\">"
append(imgHtml)
} else {
append(String.format(template, urlSpan.matrixItem.id, displayNameResolver.getBestName(urlSpan.matrixItem)))