Christian Pauly
e13b00d127
refactor: Make RoomUpdate class null safe by removing it
...
RoomUpdate came from a time where we had no data model for
SyncUpdates but now we have and therefore this class is just
code duplication. This removes the class
and uses the SyncRoomUpdate class from
the package matrix_api_lite instead.
It needed a lot of refactoring at some places
where I also have removed some unnecessary null or type checks.
2021-09-08 12:31:55 +00:00
Christian Pauly
524b09c572
feat: Do not load all timeline events from store at once
2021-09-03 14:58:43 +02:00
Christian Pauly
9c1f79359e
refactor: Replace all logic regarding sortOrder
...
The current implementation of sortOrder can be made way more easier now
by just keeping the sortOrder of the list
and the timelineFragments in the hiveStore. This needed a huge
change but mostly removes a lot of code which can be done
way more easy now. This also needed some rewriting of the setState logic and changes to
the prevEvent calculation. This solution should also be more stable.
More information:
https://www.reddit.com/r/fluffychat/comments/pfnlhq/the_sort_order_of_matrix_timelines/
2021-09-02 07:13:38 +00:00
Christian Pauly
9b7474e2f2
refactor: Update to dart 2.12 and opt out in all files
...
This also adds some missing license headers, I have detected while
using license header search&replace to add the
null safety opt out
2021-08-18 08:09:39 +02:00
Christian Pauly
c0c7f68bf3
chore: Rename to matrix
2021-06-18 09:58:25 +02:00
Christian Pauly
ab0ff46900
refactor: Remove types for timeline callbacks
...
These types weren't that helpful anyway and their names were not compatible
with the new linter rule of Flutter 2.2.
2021-06-01 12:57:52 +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
Lukas Lihotzki
08043c06f4
refactor: high-level loops
2021-04-01 12:51:45 +02:00
Christian Pauly
0ceb2b26df
refactor: Constants names
2021-03-30 12:43:50 +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
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
b8659213ae
feat: Implement can request history calculation
2021-02-26 13:48:29 +01:00
Christian Pauly
c9d3c327f6
refactor: Deprecate eventType in EventUpdate
2021-02-26 13:06:02 +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
Christian Pauly
57286d4c28
feat: Use logger package
2020-12-19 12:04:25 +00:00
Christian Pauly
bec1761172
refactor: content parsing
2020-11-30 15:34:46 +01:00
Sorunome
c509144987
fix: Fetching history sometimes re-sorting events in the timeline
2020-11-08 14:54:19 +01:00
Sorunome
33b1e36efd
fix: Timeline history requests causing "scrolling" and sometimes ordering things wrong
2020-11-07 11:32:51 +01:00
Sorunome
15d817023d
feat: Decrypt events on megolm key receiving better
2020-10-31 12:08:49 +01:00
Sorunome
343c26b3ed
fix: Decrypt last message on received megolm key
2020-10-26 07:49:02 +00:00
Christian Pauly
66e590073e
refactor: Event Update Type
2020-10-22 13:01:35 +02:00
Sorunome
b5ac500136
fix: Handle failed to send messages in low network significantly better
2020-09-10 13:19:58 +02:00
Christian Pauly
c46f4ba066
refactor: timeline
2020-08-22 07:10:46 +00:00
Sorunome
20d72eb8d7
fix: Event statuses progress and are saved correctly
2020-08-17 08:54:16 +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
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
Christian Pauly
a11a0b5925
Add example
2020-08-05 05:57:02 +00:00
Sorunome
f48f6bca12
Properly imlement event aggregations
2020-07-27 07:39:48 +00:00
Sorunome
c68487ac21
fix issue with sending messages
2020-07-23 08:09:00 +00:00
Sorunome
fd406987c1
Better validate event contents
2020-06-29 12:02:18 +00:00
Christian Pauly
9f8d170dd4
Fix sending sort order
2020-06-19 14:00:32 +02:00
Sorunome
7ddb6be30e
Allow requesting and updating of session keys with lower index and lower forwarded chain
2020-06-10 10:44:22 +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
Sorunome
384e5962d6
properly persist decryption of events
2020-05-22 11:15:48 +00:00
Christian Pauly
27b4a620e5
Add code formatting CI job
2020-05-22 10:12:18 +00:00
Sorunome
fc8625d30e
clear timeline events cache on limited updates
2020-05-21 14:52:14 +00:00
Sorunome
c5e4e2c751
decrypt events in sync loop, making it async
2020-05-19 09:49:37 +02:00
Sorunome
06b601c41b
lazy-load group session keys
2020-05-17 07:54:34 +00:00
Sorunome
f71826739c
Switch to moor
2020-05-15 18:40:17 +00:00
Christian Pauly
6f5ebe4681
[MxContent] Switch to Uri Extension
2020-04-24 09:24:06 +02:00
Christian Pauly
a3c5add79e
[SDK] Refactoring with new linter rules
2020-03-30 09:08:38 +00:00
Christian Pauly
ac3a9a6b3a
[Room] Implement key sharing
2020-02-21 15:05:19 +00:00
Christian Pauly
3c386391cf
[Timeline] Try to decrypt but not block
2020-02-15 08:58:08 +00:00
Christian Pauly
f5b493f9bd
[SDK] Add dart-olm library and update CI
2020-02-15 07:48:41 +00:00
Christian Pauly
b53d1d22c3
[Timeline] 2 seconds cooldown for requestHistory
2020-01-08 14:20:42 +00:00
Christian Pauly
de2872cfee
Update lib/src/client.dart, lib/src/user.dart, lib/src/timeline.dart, lib/src/room.dart, lib/src/presence.dart, lib/src/event.dart, lib/src/utils/profile.dart, lib/src/utils/receipt.dart, test/client_test.dart, test/event_test.dart, test/presence_test.dart, test/room_test.dart, test/timeline_test.dart, test/user_test.dart files
2020-01-04 17:56:17 +00:00