aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-01-25 22:46:39 +0100
committerChristian Schneppe <christian@pix-art.de>2019-01-25 22:46:39 +0100
commit13407cb36d254b1fdb6e6f8d72391363881f3035 (patch)
tree7021dd5fe2a2a038d05b1a83ff9c1651b1809dcf
parentda4e384258f4e07e441872726094c7ffe691160e (diff)
ignore code block start in message preview
Diffstat (limited to '')
-rw-r--r--src/main/java/de/pixart/messenger/utils/UIHelper.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/UIHelper.java b/src/main/java/de/pixart/messenger/utils/UIHelper.java
index d7a3ca2e0..ea1878557 100644
--- a/src/main/java/de/pixart/messenger/utils/UIHelper.java
+++ b/src/main/java/de/pixart/messenger/utils/UIHelper.java
@@ -307,6 +307,9 @@ public class UIHelper {
SpannableStringBuilder builder = new SpannableStringBuilder();
for (CharSequence l : CharSequenceUtils.split(styledBody, '\n')) {
if (l.length() > 0) {
+ if (l.toString().equals("```")) {
+ continue;
+ }
char first = l.charAt(0);
if ((first != '>' || !isPositionFollowedByQuoteableCharacter(l,0)) && first != '\u00bb') {
CharSequence line = CharSequenceUtils.trim(l);