Change summary
src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 5
src/main/java/eu/siacs/conversations/utils/MessageUtils.java | 3
2 files changed, 3 insertions(+), 5 deletions(-)
Detailed changes
@@ -371,9 +371,8 @@ public class MessageAdapter extends ArrayAdapter<Message> {
if (lineStart == -1) {
if (previous == '\n') {
if (
- (QuoteHelper.isPositionQuoteStart(body, i)
- || (current == '\u00bb' && !UIHelper.isPositionFollowedByQuote(body, i)
- ))) {
+ QuoteHelper.isPositionQuoteStart(body, i)
+ ) {
// Line start with quote
lineStart = i;
if (quoteStart == -1) quoteStart = i;
@@ -70,8 +70,7 @@ public class MessageUtils {
continue;
}
final char c = line.charAt(0);
- if (QuoteHelper.isNestedTooDeeply(line)
- || (c == '\u00bb' && !UIHelper.isPositionFollowedByQuote(line, 0))) {
+ if (QuoteHelper.isNestedTooDeeply(line)) {
continue;
}
if (builder.length() != 0) {