From c81c8a62b3df6b8eb604ecd0d4792c37360cc1f9 Mon Sep 17 00:00:00 2001 From: Millesimus Date: Sat, 21 Aug 2021 17:21:44 +0200 Subject: [PATCH] Small refactoring for a more intuitive config. --- src/main/java/eu/siacs/conversations/Config.java | 2 +- src/main/java/eu/siacs/conversations/ui/util/QuoteHelper.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/Config.java b/src/main/java/eu/siacs/conversations/Config.java index a8494d68c..7cbe70346 100644 --- a/src/main/java/eu/siacs/conversations/Config.java +++ b/src/main/java/eu/siacs/conversations/Config.java @@ -205,5 +205,5 @@ public final class Config { // How deep nested quotes should be displayed. '2' means one quote nested in another. public static final int QUOTE_MAX_DEPTH = 3; // How deep nested quotes should be created on quoting a message. - public static final int QUOTING_MAX_DEPTH = QUOTE_MAX_DEPTH - 1; + public static final int QUOTING_MAX_DEPTH = QUOTE_MAX_DEPTH; } diff --git a/src/main/java/eu/siacs/conversations/ui/util/QuoteHelper.java b/src/main/java/eu/siacs/conversations/ui/util/QuoteHelper.java index cc539f1ef..2502f3682 100644 --- a/src/main/java/eu/siacs/conversations/ui/util/QuoteHelper.java +++ b/src/main/java/eu/siacs/conversations/ui/util/QuoteHelper.java @@ -41,7 +41,7 @@ public class QuoteHelper { if (isPositionQuoteCharacter(line, i)) { nestingDepth++; } - if (nestingDepth > (Config.QUOTING_MAX_DEPTH)) { + if (nestingDepth > (Config.QUOTING_MAX_DEPTH - 1)) { return true; } }