mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 19:58:57 +03:00
adding missing binding options emote content
- fixes android 12+ crash when certain emojis are used within the emote content
This commit is contained in:
parent
3b35be510f
commit
ae6be3fdc4
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue