From ead33c2813b71b94a22e002b0ff3f018531f960a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 13 Mar 2018 10:20:13 +0300 Subject: www: new line before quote --- juick-core/src/main/java/com/juick/util/MessageUtils.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'juick-core/src/main/java') diff --git a/juick-core/src/main/java/com/juick/util/MessageUtils.java b/juick-core/src/main/java/com/juick/util/MessageUtils.java index f17737db..9c156c51 100644 --- a/juick-core/src/main/java/com/juick/util/MessageUtils.java +++ b/juick-core/src/main/java/com/juick/util/MessageUtils.java @@ -214,4 +214,7 @@ public class MessageUtils { return jmsg.getAttachment().getMedium().getUrl(); } } + public static boolean replyStartsWithQuote(Message msg) { + return msg.getRid() > 0 && StringUtils.defaultString(msg.getText()).startsWith(">"); + } } -- cgit v1.2.3