mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
Switch to height 32 for sent custom emotes, as suggested by MSC2545
Change-Id: If59aed6fe9b6af1acfe69db0a89d073558279882
This commit is contained in:
parent
aa34c108b5
commit
eeb4b8dc0d
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue