Switch to height 32 for sent custom emotes, as suggested by MSC2545
Change-Id: If59aed6fe9b6af1acfe69db0a89d073558279882
This commit is contained in:
parent
aa34c108b5
commit
eeb4b8dc0d
|
@ -76,7 +76,7 @@ internal class TextPillsUtils @Inject constructor(
|
||||||
if (urlSpan.matrixItem is MatrixItem.EmoteItem) {
|
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
|
// 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.
|
// 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)
|
append(imgHtml)
|
||||||
} else {
|
} else {
|
||||||
append(String.format(template, urlSpan.matrixItem.id, displayNameResolver.getBestName(urlSpan.matrixItem)))
|
append(String.format(template, urlSpan.matrixItem.id, displayNameResolver.getBestName(urlSpan.matrixItem)))
|
||||||
|
|
Loading…
Reference in New Issue