]> nmode's Git Repositories - signal-cli/commitdiff
Update code style for text blocks
authorAsamK <asamk@gmx.de>
Mon, 23 May 2022 14:24:36 +0000 (16:24 +0200)
committerAsamK <asamk@gmx.de>
Mon, 23 May 2022 14:26:07 +0000 (16:26 +0200)
.idea/codeStyles/Project.xml
lib/src/main/java/org/asamk/signal/manager/storage/sendLog/MessageSendLogStore.java
src/main/java/org/asamk/signal/commands/RegisterCommand.java
src/main/java/org/asamk/signal/util/SendMessageResultUtils.java

index 9cbd20b7cade6244c927163495c98d2408ec8fc9..bb65b3e952339d08400fd2aacbee9f9862df49f0 100644 (file)
@@ -4,6 +4,7 @@
     <JavaCodeStyleSettings>
       <option name="GENERATE_FINAL_LOCALS" value="true" />
       <option name="GENERATE_FINAL_PARAMETERS" value="true" />
+      <option name="ALIGN_MULTILINE_TEXT_BLOCKS" value="true" />
       <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="50" />
       <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="50" />
       <option name="IMPORT_LAYOUT_TABLE">
index bb313c707eda1a49400bf2d1e17ddea3e23d4b8f..79fc28f0db04123e7bacf0ebf870be7bd2eca764 100644 (file)
@@ -70,23 +70,23 @@ public class MessageSendLogStore implements AutoCloseable {
     public static void createSql(Connection connection) throws SQLException {
         try (final var statement = connection.createStatement()) {
             statement.executeUpdate("""
-                    CREATE TABLE message_send_log (
-                      _id INTEGER PRIMARY KEY,
-                      content_id INTEGER NOT NULL REFERENCES message_send_log_content (_id) ON DELETE CASCADE,
-                      recipient_id INTEGER NOT NULL,
-                      device_id INTEGER NOT NULL
-                    );
-                    CREATE TABLE message_send_log_content (
-                      _id INTEGER PRIMARY KEY,
-                      group_id BLOB,
-                      timestamp INTEGER NOT NULL,
-                      content BLOB NOT NULL,
-                      content_hint INTEGER NOT NULL
-                    );
-                    CREATE INDEX mslc_timestamp_index ON message_send_log_content (timestamp);
-                    CREATE INDEX msl_recipient_index ON message_send_log (recipient_id, device_id, content_id);
-                    CREATE INDEX msl_content_index ON message_send_log (content_id);
-                    """);
+                                    CREATE TABLE message_send_log (
+                                      _id INTEGER PRIMARY KEY,
+                                      content_id INTEGER NOT NULL REFERENCES message_send_log_content (_id) ON DELETE CASCADE,
+                                      recipient_id INTEGER NOT NULL,
+                                      device_id INTEGER NOT NULL
+                                    );
+                                    CREATE TABLE message_send_log_content (
+                                      _id INTEGER PRIMARY KEY,
+                                      group_id BLOB,
+                                      timestamp INTEGER NOT NULL,
+                                      content BLOB NOT NULL,
+                                      content_hint INTEGER NOT NULL
+                                    );
+                                    CREATE INDEX mslc_timestamp_index ON message_send_log_content (timestamp);
+                                    CREATE INDEX msl_recipient_index ON message_send_log (recipient_id, device_id, content_id);
+                                    CREATE INDEX msl_content_index ON message_send_log (content_id);
+                                    """);
         }
     }
 
index b2d3581e98c44376abc0e162c933c9d9aed45ce4..4415bb1812006cf39ca2217a1632c01072d9be0d 100644 (file)
@@ -69,10 +69,10 @@ public class RegisterCommand implements RegistrationCommand, JsonRpcRegistration
             String message;
             if (captcha == null) {
                 message = """
-                        Captcha required for verification, use --captcha CAPTCHA
-                        To get the token, go to https://signalcaptchas.org/registration/generate.html
-                        Check the developer tools (F12) console for a failed redirect to signalcaptcha://
-                        Everything after signalcaptcha:// is the captcha token.""";
+                          Captcha required for verification, use --captcha CAPTCHA
+                          To get the token, go to https://signalcaptchas.org/registration/generate.html
+                          Check the developer tools (F12) console for a failed redirect to signalcaptcha://
+                          Everything after signalcaptcha:// is the captcha token.""";
             } else {
                 message = "Invalid captcha given.";
             }
index a7739c23fbfe944620e5a4741ce94adc90a5ea98..cf2b282fabd33d8f150c0f43eb94ee66205e0e40 100644 (file)
@@ -84,11 +84,11 @@ public class SendMessageResultUtils {
                             + (
                             failure.getOptions().contains(ProofRequiredException.Option.RECAPTCHA)
                                     ? """
-                                    To get the captcha token, go to https://signalcaptchas.org/challenge/generate.html
-                                    Check the developer tools (F12) console for a failed redirect to signalcaptcha://
-                                    Everything after signalcaptcha:// is the captcha token.
-                                    Use the following command to submit the captcha token:
-                                    signal-cli submitRateLimitChallenge --challenge CHALLENGE_TOKEN --captcha CAPTCHA_TOKEN"""
+                                      To get the captcha token, go to https://signalcaptchas.org/challenge/generate.html
+                                      Check the developer tools (F12) console for a failed redirect to signalcaptcha://
+                                      Everything after signalcaptcha:// is the captcha token.
+                                      Use the following command to submit the captcha token:
+                                      signal-cli submitRateLimitChallenge --challenge CHALLENGE_TOKEN --captcha CAPTCHA_TOKEN"""
                                     : ""
                     ),
                     identifier,