Merge pull request #4744 from vector-im/feature/adm/emoji-notice-fix
Emojis in emotes causing crashes on Android 12+
This commit is contained in:
commit
ac65942c28
|
@ -0,0 +1 @@
|
|||
Fixes crash when launching rooms which contain emojis in the emote content on android 12+
|
|
@ -613,7 +613,7 @@ class MessageItemFactory @Inject constructor(
|
|||
val formattedBody = SpannableStringBuilder()
|
||||
formattedBody.append("* ${informationData.memberName} ")
|
||||
formattedBody.append(messageContent.getHtmlBody())
|
||||
|
||||
val bindingOptions = spanUtils.getBindingOptions(formattedBody)
|
||||
val message = formattedBody.linkify(callback)
|
||||
|
||||
return MessageTextItem_()
|
||||
|
@ -625,6 +625,7 @@ class MessageItemFactory @Inject constructor(
|
|||
message(message)
|
||||
}
|
||||
}
|
||||
.bindingOptions(bindingOptions)
|
||||
.leftGuideline(avatarSizeProvider.leftGuideline)
|
||||
.previewUrlRetriever(callback?.getPreviewUrlRetriever())
|
||||
.imageContentRenderer(imageContentRenderer)
|
||||
|
|
Loading…
Reference in New Issue