Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-05-14 14:08:42 +0300
committerStefan Niedermann <info@niedermann.it>2020-05-14 14:08:42 +0300
commit906894f49fec6d414bcca699b8e02891a3182f89 (patch)
treec5305b9b28db935b83e00d3941cfc76d3bb640ca /app/src/main/java/it/niedermann/nextcloud/deck/model
parentc30b3c6bd189f26c3a9e735d6096e4027cbec14f (diff)
Display reply button depending on server app version
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model')
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/Version.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/Version.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/Version.java
index 701cdd335..628236873 100644
--- a/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/Version.java
+++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/ocs/Version.java
@@ -80,7 +80,7 @@ public class Version implements Comparable<Version> {
if (matcher.find()) {
return Integer.parseInt(matcher.group());
}
- throw new IllegalArgumentException("could not extract a number from following string: \""+containsNumbers+"\"");
+ throw new IllegalArgumentException("could not extract a number from following string: \"" + containsNumbers + "\"");
}
@NonNull
@@ -143,6 +143,17 @@ public class Version implements Comparable<Version> {
}
/**
+ * Replying to comments does cause synchronization errors because the API expected the
+ * <code>parentId</code> to be a {@link String} up until version x.x.x
+ * https://github.com/nextcloud/deck/issues/1831#issuecomment-627207849
+ *
+ * @return whether or not the server supports replying to comments
+ */
+ public boolean supportsCommentsReplys() {
+ return false;
+ }
+
+ /**
* Title max length has been increased from 100 to 255 characters beginning with server version 1.0.0
*
* @return the number of characters that the title fields of cards allow