Improve sticker visibility

Increase its size and set timestamp inside
This commit is contained in:
sim 2022-08-31 22:53:49 +02:00
parent 8e362f6919
commit 45f44bd1af
2 changed files with 2 additions and 2 deletions

View file

@ -68,6 +68,7 @@ class TimelineMessageLayoutFactory @Inject constructor(
private val MSG_TYPES_WITH_TIMESTAMP_INSIDE_MESSAGE = setOf(
MessageType.MSGTYPE_IMAGE,
MessageType.MSGTYPE_VIDEO,
MessageType.MSGTYPE_STICKER_LOCAL,
MessageType.MSGTYPE_BEACON_INFO,
MessageType.MSGTYPE_LOCATION,
MessageType.MSGTYPE_BEACON_LOCATION_DATA,

View file

@ -275,8 +275,7 @@ class ImageContentRenderer @Inject constructor(
}
Mode.STICKER -> {
// limit on width
val maxWidthDp = min(dimensionConverter.dpToPx(120), maxImageWidth / 2)
finalWidth = min(dimensionConverter.dpToPx(width), maxWidthDp)
finalWidth = min(dimensionConverter.dpToPx(width), maxImageWidth * 3 / 4)
finalHeight = finalWidth * height / width
}
}