aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-13 10:20:13 +0300
committerGravatar Vitaly Takmazov2018-03-13 10:20:13 +0300
commitead33c2813b71b94a22e002b0ff3f018531f960a (patch)
treeb72701cee234eb806dccf6b8ec2a5ea135853742 /juick-core/src/main/java
parent1f5869fcfe8c537d223b750754025cb2937d4bad (diff)
www: new line before quote
Diffstat (limited to 'juick-core/src/main/java')
-rw-r--r--juick-core/src/main/java/com/juick/util/MessageUtils.java3
1 files changed, 3 insertions, 0 deletions
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(">");
+ }
}