Christian Pauly
768b0623da
feat: Implement sync status stream
...
This new sync status stream gives the current status of the sync to make it possible
to display in the UI where the sync currently hangs and
what the progress is while updating 1000 rooms. So the app can display a
progress bar.
2021-06-20 15:59:59 +02:00
Christian Pauly
a7ffe4835d
feat: Also migrate inbound group sessions
...
For users who do not use the chat backup this could be useful.
2021-06-19 11:03:52 +02:00
Christian Pauly
69b52ba85b
refactor: Move pedantic to dev_dependencies
...
The unawaited method from the pedantic package was a historic solution
for the case that you dont want to await a future in an async function.
But now we can do this with just a comment which
is the recommended way to do this now.
This makes it possible to have pedantic as a dev_dependency which means just one dependency less.
2021-06-18 10:15:59 +02:00
Christian Pauly
c0c7f68bf3
chore: Rename to matrix
2021-06-18 09:58:25 +02:00
Christian Pauly
38d81d6093
fix: Migrate missing device keys
...
Currently we only migrate the client and SSSSCache but this leads to the
problem that we are no longer self signed after the migration.
We need to migrate all device keys too.
This also abstracts the migration code in a method. init() is too large already...
2021-06-18 09:16:12 +02:00
Christian Pauly
28dc8b4ff0
refactor: Improve clearing
...
This makes sure that the database is null after clearing so it will
be built again using the databaseBuilder.
Also this makes sure that the sync has
aborted BEFORE the clearing starts to
get rid of some warnings in the logs.
2021-06-14 11:00:41 +02:00
Christian Pauly
fe06b96e93
fix: Do not logout before migration
...
Before the migration of the databases starts there is always a
logout signal sent. This was wrong.
This also cleans up the logs a little bit
and removes the useless parameters for the second init() call
because those are going to come from the new database anyway.
2021-06-14 08:29:03 +02:00
Christian Pauly
967712adfe
feat: Implement database migration
...
This allows the user to give a legacyDatabaseBuilder to the client object
and in the init proccess the client checks by itself if there is old data in the legacy
database. If yes then it migrates them and
then deletes the old database. This uses the database_api and is agnostic to
the database implementation.
2021-06-11 10:10:18 +02:00
Christian Pauly
26261ecd5e
feat: Add fromJson method for Room
...
This also included to move the room summary to a dedicated object inside
of the Room object because so it is easier to convert this to and from json.
2021-06-01 12:54:16 +02:00
Christian Pauly
c3d47b16c6
CI: Use correct image
2021-05-25 10:46:34 +02:00
Christian Pauly
c66e35c16c
refactor: Create a clean database API
2021-05-20 07:36:03 +00:00
Christian Pauly
d1b76b01c4
fix: Try clear and try close database
2021-05-17 14:36:10 +02:00
Christian Pauly
bb9a8ff7e9
fix: SdkError Exception can be anything so should be dynamic
2021-05-17 14:17:46 +02:00
Nicolas Werner
6f52c0e2c3
fix: Allow SDK users to delete the db after logout
2021-05-17 07:38:53 +00:00
Lukas Lihotzki
c196610998
chore: operation names from OpenAPI spec
2021-05-12 13:56:16 +02:00
Lukas Lihotzki
b4f755388a
refactor: high-level loops
2021-04-19 18:58:59 +02:00
Christian Pauly
ffef732103
refactor: enable more linter rules
...
enable prefer_final_locals and prefer_final_in_for_each linter rules
2021-04-14 10:29:29 +02:00
Christian Pauly
fb0177ac5f
feat: Implement spaces
2021-04-12 09:24:20 +02:00
Lukas Lihotzki
2a2a170609
refactor: upgrade http package
2021-04-01 13:43:24 +02:00
Lukas Lihotzki
08043c06f4
refactor: high-level loops
2021-04-01 12:51:45 +02:00
Krille Fear
9bef8452d3
docs: Clean up dart documentations
...
Changing to `code` blocks where it cant be resolved to [stuff] things.
2021-03-16 12:32:21 +00:00
Christian Pauly
97daae3419
refactor: Update to matrix_api_lite 0.2.0
...
This introduces a minor breaking change in the login method.
It now uses correctly the AuthenticationIdentifier
and deprecates the user, medium and address parameter.
2021-03-09 19:14:53 +01:00
Krille Fear
57fde98fec
Merge branch 'soru/less-sql-statements' into 'main'
...
chore: Reduce needed database accessess
See merge request famedly/famedlysdk!666
2021-03-09 18:12:40 +00:00
Sorunome
c76dc0daa2
chore: Reduce needed database accessess
2021-03-09 18:28:58 +01:00
Christian Pauly
1f8285c3e7
refactor: Room states
2021-03-09 17:28:55 +00:00
Krille Fear
44ca96e544
refactor: Update pedantic
...
This enforces to NOT use curly braces in Strings where not needed
and not await non-future variables.
2021-03-09 17:28:04 +00:00
Krille Fear
0d8bddf708
Merge branch 'soru/fallback-keys' into 'main'
...
feat: Add fallback keys support
Closes #136
See merge request famedly/famedlysdk!653
2021-03-03 07:38:32 +00:00
Sorunome
498c7825a5
feat: Add fallback keys support
2021-03-02 16:17:32 +01:00
Sorunome
885141968c
Merge branch 'krille/refactor-event-update' into 'main'
...
refactor: Deprecate eventType in EventUpdate
See merge request famedly/famedlysdk!661
2021-02-26 16:11:57 +00:00
Christian Pauly
c9d3c327f6
refactor: Deprecate eventType in EventUpdate
2021-02-26 13:06:02 +01:00
Christian Pauly
29d0e673e0
fix: Sync error handling
2021-02-24 09:17:41 +01:00
Christian Pauly
72a7bc1637
feat: Implement upload sync filters
2021-02-18 14:03:58 +01:00
Christian Pauly
c7f78bdaf5
fix: Dont catch sync errors
2021-02-18 13:01:13 +01:00
Christian Pauly
fc8563849a
feat: Custom Exception and return type for Change Homeserver
2021-02-13 09:08:56 +01:00
Sorunome
fcb8d48bd7
feat: Add command parser
2021-02-09 18:19:38 +01:00
Christian Pauly
d362d6db23
fix: Request history on limited timeline
2021-02-09 15:02:48 +01:00
Krille Fear
1154bc3606
Merge branch 'soru/replay-to-device' into 'main'
...
fix: Add to_device queue to prevent olm session corruptions
Closes #141
See merge request famedly/famedlysdk!640
2021-02-09 08:24:21 +00:00
Sorunome
d373a06aa2
fix: Add to_device queue to prevent olm session corruptions
2021-02-08 14:57:19 +01:00
Christian Pauly
9faf07e31a
refactor: New start direct chat method in client
2021-02-06 10:48:36 +01:00
Christian Pauly
bd4c4a6131
chore: Add more bootstrap logging
2021-02-04 15:33:27 +01:00
Christian Pauly
fefa140758
fix: Dont update user device keys if logged out
2021-01-27 11:15:41 +01:00
Christian Pauly
d16c9eaf32
fix: Trailing slash homeserver from wellknown
2021-01-27 09:41:18 +01:00
Christian Pauly
7b29563caa
change: requestHistoryOnLimitedTimeline by default false
2021-01-21 12:17:30 +01:00
Krille Fear
c701268d71
feat: Do well known by default in check homeserver
2021-01-20 13:21:51 +00:00
Christian Pauly
4d1134a2db
fix: Logout after failed init
2021-01-18 22:44:01 +01:00
Sorunome
4597ea3445
Merge branch 'krille/deprecate-sendername' into 'main'
...
change: Deprecate senderName
Closes app#1065
See merge request famedly/famedlysdk!615
2021-01-15 14:45:43 +00:00
Christian Pauly
03e17f890e
change: Deprecate senderName
2021-01-15 14:24:30 +01:00
Sorunome
9d6005ca2a
fix: Smoothen up sending to rooms with extremely many devices
2021-01-14 18:47:51 +01:00
Christian Pauly
fea4dea6a9
feat: Request history on limited timeline
2021-01-13 08:45:24 +01:00
Sorunome
ef854b3b4c
Merge branch 'krille/fix-sort-at-the-end' into 'main'
...
fix: Sort at the end
Closes app#1037
See merge request famedly/famedlysdk!607
2021-01-12 12:22:21 +00:00
Sorunome
fddced2b3a
fix: Properly handle initial device key uploading failures and better handle OTK upload failures
2021-01-12 12:56:23 +01:00
Christian Pauly
00d03e9330
fix: Sort at the end
2021-01-08 13:40:10 +01:00
Christian Pauly
9ffecd845a
chore: Update license header
2021-01-04 10:34:50 +01:00
Christian Pauly
e450a09fb5
refactor: External matrix api
2021-01-04 10:26:29 +01:00
Sorunome
f6589f9596
fix: Properly clear in-memory outbound sessions when clearing cache
2020-12-31 12:58:41 +01:00
Sorunome
08dcce6225
chore: Add more debugging logs
2020-12-30 18:50:40 +01:00
Sorunome
6723c01a31
feat: Lazy-send room keys, chunked and sorted by importance
2020-12-29 14:46:36 +01:00
Sorunome
3ff958de4e
fix: properly handle changed cross-signing keys
2020-12-29 14:37:09 +01:00
Sorunome
68afe362ce
feat: Start megolm sessions while typing
2020-12-28 16:14:07 +01:00
Sorunome
ccd03ecd22
fix: Various small e2ee fixes
2020-12-28 14:49:55 +01:00
Sorunome
c6f718adcc
fix: Sort state events of history requests correctly
2020-12-27 10:55:41 +01:00
Christian Pauly
dacd007780
fix: Clear logs on clear()
2020-12-23 11:32:58 +01:00
Marcus Hoffmann
54fc29f203
clear cache fix
2020-12-22 17:34:50 +01:00
Sorunome
6f9deb5ae2
fix: Verify device signatures before storing devices and block those with invalid signatures
2020-12-22 10:22:42 +01:00
Christian Pauly
57286d4c28
feat: Use logger package
2020-12-19 12:04:25 +00:00
Sorunome
d1ce075b5b
feat: Automatically cache storable files on upload
2020-12-17 11:59:31 +01:00
Christian Pauly
3856b618e8
refactor: Encryption errors
2020-12-15 08:24:55 +01:00
Christian Pauly
6657e073a0
refactor: Follow up clean up bootstrap
2020-12-11 09:57:45 +01:00
Christian Pauly
b563aec7bb
refactor: Add secretstoragekeycontent
2020-12-10 11:03:45 +01:00
Sorunome
49f0679fbf
feat: Add bootstrapping
2020-12-10 08:13:24 +00:00
Lukas Lihotzki
88888a43f1
feat: set presence in sync
2020-12-09 16:02:42 +01:00
Christian Pauly
f7768af44e
fix: Clear init lock on failed init
2020-12-07 09:51:25 +00:00
Christian Pauly
bec1761172
refactor: content parsing
2020-11-30 15:34:46 +01:00
Christian Pauly
323b203718
refactor: algorithm types
2020-11-30 14:26:31 +01:00
Christian Pauly
20ae1ae20e
fix: Push Rule getter
2020-11-25 20:16:42 +01:00
Christian Pauly
0697d47cc2
refactor: Minor init refactoring
2020-11-19 17:02:07 +01:00
Christian Pauly
1e14cd3ff0
fix: Hotfix request archive
2020-11-09 19:09:38 +01:00
Christian Pauly
ac4cded10f
feat: Implement UIA for login
2020-11-09 17:48:27 +01:00
Sorunome
b0043ea0e4
fix: Pick right DM room, if multiple are set
2020-11-08 19:30:28 +01:00
Christian Pauly
f9f18641e3
refactor: Connection error handling
2020-10-29 10:42:05 +01:00
Christian Pauly
5381c3935c
refactor: Check server
2020-10-26 08:33:25 +00:00
Christian Pauly
66e590073e
refactor: Event Update Type
2020-10-22 13:01:35 +02:00
Sorunome
d116a52ea9
fix: Better handle olm session recovery
2020-10-17 12:03:54 +02:00
Christian Pauly
8908f33393
fix: Logout from outside
2020-10-15 09:17:28 +02:00
Sorunome
2e941b85e9
fix: Delete files older than 30 days
2020-10-08 13:02:20 +00:00
Sorunome
74bd1d331b
fix: Messages being encrypted for too many devices
2020-10-04 14:20:17 +02:00
Sorunome
ae79af6ea8
fix: store timestamps in milliseconds to fix decrypt error
2020-10-04 12:12:03 +02:00
Sorunome
877ff9963c
fix: Don't sort rooms too often
2020-09-27 10:54:54 +02:00
Christian Pauly
5019ebfeb5
feat: Auto retry send events
2020-09-21 16:51:40 +00:00
Christian Pauly
adb907bbc4
fix: Clear on logout
2020-09-21 16:31:28 +00:00
Christian Pauly
864cbfa906
fix: Hotfix ignored user list
2020-09-20 10:37:36 +02:00
Christian Pauly
510de05304
fix: ignore list
2020-09-19 15:05:43 +02:00
Christian Pauly
a77e776479
feat: Implement ignore list
2020-09-19 12:39:19 +02:00
Sorunome
024a27bfc2
fix: Back off of failed key queries
2020-09-18 10:24:14 +02:00
Christian Pauly
b05e4da34f
fix: Last event calculation
2020-09-16 10:23:37 +02:00
Sorunome
99d536b14f
feature: Upload to online key backup
2020-09-09 09:53:26 +02:00
Lukas Lihotzki
e6d96ad8ed
feat(sync): configurable sync
2020-09-07 11:03:24 +02:00
Christian Pauly
e90793bef1
fix: Last message sort order
2020-09-04 09:48:35 +02:00
Christian Pauly
9142dcbeec
fix: Database error handling
2020-08-26 09:40:30 +02:00
Christian Pauly
6fbee4ee05
test: Integrate E2EE tests
2020-08-25 13:19:57 +00:00
Lukas Lihotzki
d6b97b8e78
feat: safe dispose while _sync
2020-08-21 17:20:26 +02:00
Christian Pauly
09ffa09404
Ignore old webrtc invites
2020-08-19 07:20:16 +00:00
Christian Pauly
50d97ebeb2
Fix unencrypted call events
2020-08-15 16:05:11 +02:00
Christian Pauly
215563ab92
Fix wrong call types
2020-08-15 15:17:17 +02:00
Christian Pauly
61b32e0bd9
Hotfix client
2020-08-14 18:22:31 +02:00
MTRNord
26586b6f02
style: Change package:famedlysdk imports to relative imports
...
Changing the imports from `package:famedlysdk` to relative imports allows us to easier move the files
Took 2 minutes
2020-08-13 10:40:39 +02:00
Christian Pauly
fb9b505988
Krille/make client extend matrixapi
2020-08-11 16:11:51 +00:00
Christian Pauly
6170c79fe1
Improve logging
2020-08-06 09:35:02 +00:00
Christian Pauly
6779ab6624
Deprecate debug mode
2020-08-06 07:09:32 +00:00
Sorunome
e1fa4983d0
try...catch fetching all encrypted devices, in case we aren't in a room
2020-08-04 09:17:52 +00:00
Sorunome
69431a1aff
some key verification fixes and temporarily disable transactions
2020-07-30 09:57:45 +02:00
Sorunome
6696a8b3ca
Remove trailing slash in checkServer
2020-07-27 07:40:25 +00:00
Christian Pauly
4f2a8febf9
Fix request history
2020-07-21 07:34:30 +00:00
Marcel
3c0fbf784f
[Requests] Add try_catch for utf8 decoding because dart really seems to have issues with json encoding and decoding. (also use camelCase)
...
Took 18 minutes
2020-07-20 13:43:55 +02:00
Marcel
9f6bd740ca
[Requests] Make sure to not use the latin1 version of the json but instead convert the bytes to utf8 as required by various RFCs.
...
Took 14 minutes
2020-07-20 13:19:57 +02:00
Christian Pauly
b8f80c7071
Fix room sorting
2020-07-20 07:46:46 +00:00
Christian Pauly
c87450dafb
Remove deprecated contactlist method
2020-07-02 10:41:23 +00:00
Sorunome
ac720df3d2
Merge branch 'soru/performance' into 'master'
...
Greatly imporve initial loading performance
See merge request famedly/famedlysdk!377
2020-07-02 08:55:31 +00:00
Sorunome
7351319f28
address things
2020-07-02 10:32:11 +02:00
Sorunome
8f122195c5
re-work state lazy loading after discussion
2020-07-01 11:09:31 +02:00
Christian Pauly
ad098aa246
Merge branch 'krille/catch-all-sync-errors' into 'master'
...
Catch all sync errors
See merge request famedly/famedlysdk!374
2020-06-30 14:47:40 +00:00
Sorunome
b7b369923f
only lazy-load m.room.member, not store presence
2020-06-30 13:41:52 +02:00
Sorunome
2e3d8205b1
analyze and format
2020-06-30 12:21:03 +02:00
Sorunome
a1f8120c59
Greatly imporve initial loading performance
2020-06-30 12:17:56 +02:00
Sorunome
dbfaf7fa72
hide red herring sync errors
2020-06-29 15:27:14 +02:00
Christian Pauly
2f32791117
Catch all sync errors
2020-06-29 14:09:40 +02:00
Christian Pauly
0ac7aec071
Merge branch 'matrixfile-refactor-all' into 'master'
...
MatrixFile refactoring for thumbnails
See merge request famedly/famedlysdk!371
2020-06-29 12:00:26 +00:00
Lukas Lihotzki
842581699c
MatrixFile refactoring for thumbnails
2020-06-29 12:00:26 +00:00
Sorunome
163cbdb923
Hotfix: account_data stored incorrectly in the database
2020-06-26 18:46:54 +02:00
Sorunome
35ba666c0a
Merge branch 'krille/fix-sorting-again' into 'master'
...
Fix sorting again and again god damn
See merge request famedly/famedlysdk!365
2020-06-25 07:57:16 +00:00
Sorunome
5dda0c3623
Merge branch 'soru/cross-signing' into 'master'
...
Cross-Signing
See merge request famedly/famedlysdk!319
2020-06-25 07:53:30 +00:00
Christian Pauly
34425b035f
Fix sorting again and again god damn
2020-06-25 09:51:24 +02:00
Christian Pauly
c536af32f5
Fix wrong type for sort
2020-06-25 09:36:28 +02:00
Christian Pauly
2b393ff193
Sort invites on top
2020-06-25 09:27:01 +02:00
Christian Pauly
52e57f8dc2
Minor refactoring
2020-06-25 07:16:59 +00:00
Christian Pauly
13b3c0df4d
Add room tag support
2020-06-24 09:22:08 +00:00
Sorunome
f79a85ca71
Merge branch 'master' into soru/cross-signing
2020-06-24 09:26:22 +02:00
Sorunome
2999ceec9e
potentially fix direct chats going missing
2020-06-22 06:48:30 +00:00
Sorunome
e874a5e00b
add signature verification tests
2020-06-15 10:26:50 +02:00
Sorunome
4154c7d0eb
format and some analyze
2020-06-06 13:47:37 +02:00
Sorunome
4c60369b8d
migrate to new thingy!
2020-06-05 22:03:28 +02:00
Sorunome
d29fb9abfe
Merge branch 'soru/modularize-e2ee' into soru/cross-signing
2020-06-05 18:59:58 +02:00
Sorunome
f3f3231df6
add some encrypt / decrypt tests
2020-06-04 17:51:49 +02:00
Sorunome
fcde6a2459
split encryption stuff to other library
2020-06-04 13:39:51 +02:00
Christian Pauly
c6bf098644
Init matrix_api library
2020-06-03 10:16:01 +00:00
Christian Pauly
bd00c066c8
Catch sync errors
2020-06-01 18:24:41 +00:00
Sorunome
9971e7377e
configurable verification methods
2020-05-30 13:55:09 +02:00
Sorunome
41a08d4c28
additional validation of received secrets
2020-05-30 13:13:42 +02:00
Sorunome
c65b5948fc
Merge branch 'master' into soru/cross-signing
2020-05-29 08:54:33 +02:00
Sorunome
72fdb68e82
some fixes
2020-05-29 08:49:52 +02:00