commit df7c3943fc357b231250ef0703dd94ab6550268e
parent 149a010b3d1ad037ecb805690dab2ffa9c741548
Author: Marcel <mtrnord1@gmail.com>
Date: Sat, 6 Jun 2020 23:19:47 +0200
Print sync errors (changed in the sdk fork)
Took 2 minutes
Diffstat:
21 files changed, 106 insertions(+), 70 deletions(-)
diff --git a/i18n/po/de/daydream.po b/i18n/po/de/daydream.po
@@ -2,29 +2,35 @@ msgid ""
msgstr ""
"Project-Id-Version: Daydream\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
+#. The Login Button of the Login page
+#: src/app/views/login.rs:169 src/app/views/login.rs:280
+msgid "Login"
+msgstr "Anmelden"
+
+#. {0} is the Error that happened on login
+#. The error message of the Login page
+#: src/app/views/login.rs:182
+msgid "Error: {0}"
+msgstr ""
+
#. The URL Field of the Login page
-#: src/app/views/login.rs:78 src/app/views/login.rs:91
+#: src/app/views/login.rs:201 src/app/views/login.rs:214
msgid "Homeserver URL"
msgstr "Heimserver Adresse"
#. The Matrix ID Field of the Login page
-#: src/app/views/login.rs:104 src/app/views/login.rs:116
+#: src/app/views/login.rs:227 src/app/views/login.rs:239
msgid "MXID"
msgstr "MXID"
#. The Password Field of the Login page
-#: src/app/views/login.rs:129 src/app/views/login.rs:142
+#: src/app/views/login.rs:252 src/app/views/login.rs:265
msgid "Password"
msgstr "Passwort"
-
-#. The Login Button of the Login page
-#: src/app/views/login.rs:157
-msgid "Login"
-msgstr "Anmelden"
diff --git a/i18n/pot/daydream.pot b/i18n/pot/daydream.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,22 +17,28 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+#. The Login Button of the Login page
+#: src/app/views/login.rs:169 src/app/views/login.rs:280
+msgid "Login"
+msgstr ""
+
+#. {0} is the Error that happened on login
+#. The error message of the Login page
+#: src/app/views/login.rs:182
+msgid "Error: {0}"
+msgstr ""
+
#. The URL Field of the Login page
-#: src/app/views/login.rs:78 src/app/views/login.rs:91
+#: src/app/views/login.rs:201 src/app/views/login.rs:214
msgid "Homeserver URL"
msgstr ""
#. The Matrix ID Field of the Login page
-#: src/app/views/login.rs:104 src/app/views/login.rs:116
+#: src/app/views/login.rs:227 src/app/views/login.rs:239
msgid "MXID"
msgstr ""
#. The Password Field of the Login page
-#: src/app/views/login.rs:129 src/app/views/login.rs:142
+#: src/app/views/login.rs:252 src/app/views/login.rs:265
msgid "Password"
msgstr ""
-
-#. The Login Button of the Login page
-#: src/app/views/login.rs:157
-msgid "Login"
-msgstr ""
diff --git a/i18n/pot/src/app/components/event_list.pot b/i18n/pot/src/app/components/event_list.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/components/events/image.pot b/i18n/pot/src/app/components/events/image.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/components/events/mod.pot b/i18n/pot/src/app/components/events/mod.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/components/events/notice.pot b/i18n/pot/src/app/components/events/notice.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/components/events/text.pot b/i18n/pot/src/app/components/events/text.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/components/events/video.pot b/i18n/pot/src/app/components/events/video.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/components/mod.pot b/i18n/pot/src/app/components/mod.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/components/room_list.pot b/i18n/pot/src/app/components/room_list.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/matrix/mod.pot b/i18n/pot/src/app/matrix/mod.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/matrix/sync.pot b/i18n/pot/src/app/matrix/sync.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/matrix/types.pot b/i18n/pot/src/app/matrix/types.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/mod.pot b/i18n/pot/src/app/mod.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,22 +17,28 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+#. The Login Button of the Login page
+#: ./src/app/views/login.rs:169 ./src/app/views/login.rs:280
+msgid "Login"
+msgstr ""
+
+#. {0} is the Error that happened on login
+#. The error message of the Login page
+#: ./src/app/views/login.rs:182
+msgid "Error: {0}"
+msgstr ""
+
#. The URL Field of the Login page
-#: ./src/app/views/login.rs:78 ./src/app/views/login.rs:91
+#: ./src/app/views/login.rs:201 ./src/app/views/login.rs:214
msgid "Homeserver URL"
msgstr ""
#. The Matrix ID Field of the Login page
-#: ./src/app/views/login.rs:104 ./src/app/views/login.rs:116
+#: ./src/app/views/login.rs:227 ./src/app/views/login.rs:239
msgid "MXID"
msgstr ""
#. The Password Field of the Login page
-#: ./src/app/views/login.rs:129 ./src/app/views/login.rs:142
+#: ./src/app/views/login.rs:252 ./src/app/views/login.rs:265
msgid "Password"
msgstr ""
-
-#. The Login Button of the Login page
-#: ./src/app/views/login.rs:157
-msgid "Login"
-msgstr ""
diff --git a/i18n/pot/src/app/views/login.pot b/i18n/pot/src/app/views/login.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,22 +17,28 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+#. The Login Button of the Login page
+#: ./src/app/views/login.rs:169 ./src/app/views/login.rs:280
+msgid "Login"
+msgstr ""
+
+#. {0} is the Error that happened on login
+#. The error message of the Login page
+#: ./src/app/views/login.rs:182
+msgid "Error: {0}"
+msgstr ""
+
#. The URL Field of the Login page
-#: ./src/app/views/login.rs:78 ./src/app/views/login.rs:91
+#: ./src/app/views/login.rs:201 ./src/app/views/login.rs:214
msgid "Homeserver URL"
msgstr ""
#. The Matrix ID Field of the Login page
-#: ./src/app/views/login.rs:104 ./src/app/views/login.rs:116
+#: ./src/app/views/login.rs:227 ./src/app/views/login.rs:239
msgid "MXID"
msgstr ""
#. The Password Field of the Login page
-#: ./src/app/views/login.rs:129 ./src/app/views/login.rs:142
+#: ./src/app/views/login.rs:252 ./src/app/views/login.rs:265
msgid "Password"
msgstr ""
-
-#. The Login Button of the Login page
-#: ./src/app/views/login.rs:157
-msgid "Login"
-msgstr ""
diff --git a/i18n/pot/src/app/views/main_view.pot b/i18n/pot/src/app/views/main_view.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/app/views/mod.pot b/i18n/pot/src/app/views/mod.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,22 +17,28 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+#. The Login Button of the Login page
+#: ./src/app/views/login.rs:169 ./src/app/views/login.rs:280
+msgid "Login"
+msgstr ""
+
+#. {0} is the Error that happened on login
+#. The error message of the Login page
+#: ./src/app/views/login.rs:182
+msgid "Error: {0}"
+msgstr ""
+
#. The URL Field of the Login page
-#: ./src/app/views/login.rs:78 ./src/app/views/login.rs:91
+#: ./src/app/views/login.rs:201 ./src/app/views/login.rs:214
msgid "Homeserver URL"
msgstr ""
#. The Matrix ID Field of the Login page
-#: ./src/app/views/login.rs:104 ./src/app/views/login.rs:116
+#: ./src/app/views/login.rs:227 ./src/app/views/login.rs:239
msgid "MXID"
msgstr ""
#. The Password Field of the Login page
-#: ./src/app/views/login.rs:129 ./src/app/views/login.rs:142
+#: ./src/app/views/login.rs:252 ./src/app/views/login.rs:265
msgid "Password"
msgstr ""
-
-#. The Login Button of the Login page
-#: ./src/app/views/login.rs:157
-msgid "Login"
-msgstr ""
diff --git a/i18n/pot/src/constants.pot b/i18n/pot/src/constants.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/errors.pot b/i18n/pot/src/errors.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/i18n/pot/src/lib.pot b/i18n/pot/src/lib.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: daydream 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-06-06 18:34+0000\n"
+"POT-Creation-Date: 2020-06-06 21:19+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,22 +17,28 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+#. The Login Button of the Login page
+#: ./src/app/views/login.rs:169 ./src/app/views/login.rs:280
+msgid "Login"
+msgstr ""
+
+#. {0} is the Error that happened on login
+#. The error message of the Login page
+#: ./src/app/views/login.rs:182
+msgid "Error: {0}"
+msgstr ""
+
#. The URL Field of the Login page
-#: ./src/app/views/login.rs:78 ./src/app/views/login.rs:91
+#: ./src/app/views/login.rs:201 ./src/app/views/login.rs:214
msgid "Homeserver URL"
msgstr ""
#. The Matrix ID Field of the Login page
-#: ./src/app/views/login.rs:104 ./src/app/views/login.rs:116
+#: ./src/app/views/login.rs:227 ./src/app/views/login.rs:239
msgid "MXID"
msgstr ""
#. The Password Field of the Login page
-#: ./src/app/views/login.rs:129 ./src/app/views/login.rs:142
+#: ./src/app/views/login.rs:252 ./src/app/views/login.rs:265
msgid "Password"
msgstr ""
-
-#. The Login Button of the Login page
-#: ./src/app/views/login.rs:157
-msgid "Login"
-msgstr ""
diff --git a/src/app/matrix/sync.rs b/src/app/matrix/sync.rs
@@ -20,8 +20,8 @@ impl Sync {
pub async fn start_sync(&self) {
let client = self.matrix_client.clone();
let settings = SyncSettings::default()
- .timeout(Duration::from_secs(30))
- .full_state(true);
+ .timeout(Duration::from_secs(30));
+ //.full_state(true);
client
.sync_forever(settings, |response| self.on_sync_response(response))