Use FixedURLSpan for xhtml-im

(cherry picked from commit 0cfd3783eba44437713a2ca464f1eb22ee5a230b)
This commit is contained in:
Stephen Paul Weber 2024-11-19 15:40:36 -05:00 committed by Arne
parent 280a9e8eb9
commit fb4f2099f3

View file

@ -58,6 +58,7 @@ import eu.siacs.conversations.crypto.axolotl.AxolotlService;
import eu.siacs.conversations.crypto.axolotl.FingerprintStatus;
import eu.siacs.conversations.http.URL;
import eu.siacs.conversations.services.AvatarService;
import eu.siacs.conversations.ui.text.FixedURLSpan;
import eu.siacs.conversations.ui.util.MyLinkify;
import eu.siacs.conversations.ui.util.PresenceSelector;
import eu.siacs.conversations.ui.util.QuoteHelper;
@ -1151,6 +1152,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
int i = spannable.length();
while(--i >= 0 && Character.isWhitespace(spannable.charAt(i))) { }
spannableBody = (SpannableStringBuilder) spannable.subSequence(0, i+1);
FixedURLSpan.fix(spannableBody);
}
if (includeReplyTo && getInReplyTo() != null && getModerated() == null) {