Commit Graph

99 Commits

Author SHA1 Message Date
Benoit Marty 9f53406e99 Fix crash (KotlinNullPointerException) observed on PlayStore 2019-08-07 13:35:44 +02:00
ganfra dae8b5c196
Merge pull request #460 from vector-im/feature/fix_cancellations
Feature/fix cancellations
2019-08-06 18:06:05 +02:00
ganfra 4a74f58516 Task: use a builder with DSL and introduce Constraints (only boolean connectedToNetwork at the moment) 2019-08-05 20:17:36 +02:00
ganfra 9cc922a8a2 Optimize imports 2019-08-02 11:35:27 +02:00
ganfra fd09a1224e Remove Try from suspending functions 2019-08-01 17:15:17 +02:00
Dominic Fischer a34b053efe Some optimisations
Signed-off-by: Dominic Fischer <dominicfischer7@gmail.com>
2019-07-21 23:35:38 +01:00
Valere 077396a832 E2E replies
+ Edit History / support e2e and use original event
2019-07-17 16:20:12 +02:00
Dominic Fischer 1822fc4fbb Some more kotlinification
Signed-off-by: Dominic Fischer <dominicfischer7@gmail.com>
2019-07-13 15:35:10 +01:00
Dominic Fischer e6dd1fbfec Use GlobalScope instead of temp scope
Signed-off-by: Dominic Fischer <dominicfischer7@gmail.com>
2019-07-13 15:18:16 +01:00
Benoit Marty e6c74dc1fe Convert a Task to a ConfigurableTask without parameter 2019-07-09 18:41:08 +02:00
Benoit Marty e9700e04d8 Move method to JsonCanonicalizer and fix test compilation 2019-07-09 18:04:19 +02:00
Benoit Marty d92c090c30 Code quality: HashMap / HashSet 2019-07-09 15:40:49 +02:00
Benoit Marty 0919b9460d Code quality: split long lines 2019-07-09 15:26:32 +02:00
Benoit Marty 66a018c79e Code quality: trim() 2019-07-09 15:11:20 +02:00
Benoit Marty a07f8b615e Download file - WIP 2019-07-09 15:03:21 +02:00
Benoit Marty 12bd85e0a9 Decrypt video file 2019-07-09 15:02:31 +02:00
Benoit Marty 2099965508 Avoid returning Result.failure() from appendable worker. 2019-07-09 15:02:31 +02:00
Valere 94b4351e19 wip async crypto + persist 2019-07-08 11:18:27 +02:00
Benoit Marty 302d23ba96 Create a realm locker to fast up next Realm.getInstance calls 2019-07-05 16:28:15 +02:00
Benoit Marty 03050c3f25 Cleanup 2019-07-05 16:11:54 +02:00
Benoit Marty f3fab0dc08 Rename ErrorTypes 2019-07-05 15:52:37 +02:00
Benoit Marty 4a512d2425 Create enum for errorType and fix a few issues 2019-07-05 15:43:28 +02:00
Benoit Marty 87dec337d8 Rework Crypto using Try 2019-07-05 14:41:32 +02:00
ganfra 25b0cd0e4b Remove some work from UI thread 2019-07-04 19:02:37 +02:00
Benoit Marty 6cbd6d3a33 Valere's review 2019-07-04 14:59:29 +02:00
Benoit Marty e5958983d8 Safely remove all usage of `!![` 2019-07-04 11:44:09 +02:00
Valere 4041e2e8ca code review 2019-07-03 18:40:42 +02:00
Valere 031c4e5746 Crash on loggout
https://github.com/matrix-org/riot-android-rageshakes/issues/5881
2019-07-03 18:40:04 +02:00
Valere b4ea85fc76 Fix / Rageshake crashes + cleaning !!
https://github.com/matrix-org/riot-android-rageshakes/issues/5880
https://github.com/matrix-org/riot-android-rageshakes/issues/5877
https://github.com/matrix-org/riot-android-rageshakes/issues/5873
https://github.com/matrix-org/riot-android-rageshakes/issues/5871
2019-07-03 18:40:04 +02:00
Benoit Marty 9cdecced57
Merge pull request #291 from vector-im/feature/start_crypto_earlier
Start crypto manager before handling first sync events
2019-07-03 18:05:44 +02:00
Benoit Marty 60d46538de
Merge pull request #292 from vector-im/feature/sonar_fix
Feature sonar fix and convert remaining Java files to Kotlin
2019-07-03 18:03:23 +02:00
Benoit Marty 223295c2f1 Convert MXUsersDevicesMap to kotlin - Fix issue 2019-07-03 18:01:28 +02:00
Benoit Marty f789fb275d Convert MXUsersDevicesMap to kotlin 2019-07-03 17:34:22 +02:00
Valere a7c12aeb93 Start crypto manager before handling first sync events 2019-07-03 17:17:58 +02:00
Benoit Marty 0ca9a5f68b Convert MXKey to kotlin 2019-07-03 16:45:08 +02:00
Benoit Marty 7d5c31c510 Fix Javadoc issues 2019-07-03 15:52:53 +02:00
Benoit Marty 1ee1c31b9c Fix bugs detected by Sonar 2019-07-03 15:42:35 +02:00
Valere 5d171e0240 Moved incoming key/verif to active session holder 2019-07-03 12:56:08 +02:00
Benoit Marty f41c0311fa Fix done TODO 2019-07-03 11:58:50 +02:00
ganfra 11bf00030d Merge branch 'develop' into feature/Perf 2019-07-02 17:00:09 +02:00
Benoit Marty f21f4dbe91
Merge pull request #262 from vector-im/feature/update_timeline_when_new_key
Update timeline on new session
2019-07-02 16:51:07 +02:00
Benoit Marty 62d2443b85 Remove duplicated method 2019-07-02 16:48:58 +02:00
Valere 363f52b10c Encrypt Realm databases 2019-07-02 16:48:58 +02:00
Valere 92222c269e Update timeline on new session 2019-07-02 16:18:16 +02:00
Benoit Marty 0c2d3f36c3 Encrypt file WIP 2019-07-02 09:56:20 +02:00
ganfra 164c8dab09 Glide: try to handle encrypted image. [WIP] 2019-07-02 09:56:20 +02:00
Benoit Marty b54ca5a8a0 Decrypt Attachment - WIP 2019-07-02 09:56:20 +02:00
Benoit Marty 707a4712fc Add some javadoc from Matrix spec and add EncryptedFileInfo where necessary 2019-07-02 09:56:20 +02:00
ganfra 19202cfca6 Perf: try to get better 2019-07-01 20:05:48 +02:00
Benoit Marty 466a39d239 Robustness 2019-07-01 11:08:05 +02:00