Fix emoji display in signed channel message

This commit is contained in:
luvletter2333 2021-05-02 00:17:03 +08:00
parent fa796e34d6
commit 854b68a3c1
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8
1 changed files with 2 additions and 1 deletions

View File

@ -6752,7 +6752,8 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
if (timeTextWidth < 0) {
timeTextWidth = AndroidUtilities.dp(10);
}
timeLayout = new StaticLayout(currentTimeString, Theme.chat_timePaint, timeTextWidth + AndroidUtilities.dp(100), Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);
CharSequence currentTime = Emoji.replaceEmoji(currentTimeString, Theme.chat_timePaint.getFontMetricsInt(), AndroidUtilities.dp(12), false);
timeLayout = new StaticLayout(currentTime, Theme.chat_timePaint, timeTextWidth + AndroidUtilities.dp(100), Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);
if (mediaBackground) {
if (currentMessageObject.isOutOwner()) {
timeX = layoutWidth - timeWidth - AndroidUtilities.dp(42.0f);