Fixing message preview.

This commit is contained in:
Millesimus 2021-08-21 17:42:01 +02:00 committed by Daniel Gultsch
parent 3921f3a940
commit 748443cd4e

View file

@ -32,6 +32,7 @@ import eu.siacs.conversations.entities.Presence;
import eu.siacs.conversations.entities.RtpSessionStatus; import eu.siacs.conversations.entities.RtpSessionStatus;
import eu.siacs.conversations.entities.Transferable; import eu.siacs.conversations.entities.Transferable;
import eu.siacs.conversations.services.ExportBackupService; import eu.siacs.conversations.services.ExportBackupService;
import eu.siacs.conversations.ui.util.QuoteHelper;
import eu.siacs.conversations.xmpp.Jid; import eu.siacs.conversations.xmpp.Jid;
public class UIHelper { public class UIHelper {
@ -328,7 +329,7 @@ public class UIHelper {
continue; continue;
} }
char first = l.charAt(0); char first = l.charAt(0);
if ((first != '>' || !isPositionFollowedByQuoteableCharacter(l, 0)) && first != '\u00bb') { if ((!QuoteHelper.isPositionQuoteStart(l, 0)) && first != '\u00bb') {
CharSequence line = CharSequenceUtils.trim(l); CharSequence line = CharSequenceUtils.trim(l);
if (line.length() == 0) { if (line.length() == 0) {
continue; continue;