diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/style/TimelineMessageLayoutFactory.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/style/TimelineMessageLayoutFactory.kt index e1707decc9..14a02c7172 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/style/TimelineMessageLayoutFactory.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/style/TimelineMessageLayoutFactory.kt @@ -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, diff --git a/vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt b/vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt index 74c9b5c6b8..daaf3a19ec 100644 --- a/vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt +++ b/vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt @@ -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 } }