Commit graph

325 commits

Author SHA1 Message Date
Marcel e42b4daa84 [Room]/[Store] Load sender user from server when store is not available
Took 19 minutes
2019-07-29 16:16:20 +02:00
Christian Pauly c94246195f [RoomList] Get user and Statekey 2019-07-29 09:44:55 +02:00
Marcel 90a5f32e20 [Room]/[Store] Load sender user when loading event by id
Took 5 minutes
2019-07-28 20:19:58 +02:00
Christian dd5814cd58 [ContactList] Fallback with old loadContacts 2019-07-26 14:07:29 +00:00
Christian Pauly a97e96bf72 [Store] Include invite 2019-07-26 14:57:56 +02:00
Christian Pauly ffd4eb508e [Store] Fix query 2019-07-26 14:57:12 +02:00
Christian Pauly fa88a5b2d4 [Store] Better directchat query 2019-07-26 14:55:17 +02:00
Christian Pauly d334968219 [Connection] Reenable lazy loading 2019-07-26 14:46:50 +02:00
Christian Pauly 8664954f27 [ContactList] Define contact list by discoveryRoom 2019-07-26 14:46:23 +02:00
Christian Pauly c95f4acecd [ContactList] Add functions 2019-07-26 14:00:12 +02:00
Christian Pauly a48f1519b6 [Room] Fix changename requests 2019-07-26 13:32:18 +02:00
Marcel 670110e661 Merge branch 'store-fix-db-migration' into 'master'
[Store] fix db migration

See merge request famedly/famedlysdk!51
2019-07-26 10:34:12 +00:00
Christian Pauly 98d22aaedd [Store] Back to prev db version 2019-07-26 11:06:33 +02:00
Christian Pauly 582065bf3d [Store] Fix debug 2019-07-26 11:05:35 +02:00
Christian Pauly 3441fb4964 [Store] Switch db version for testing 2019-07-26 11:02:50 +02:00
Christian Pauly 9d5296d4e0 [Store] Wait for table creation 2019-07-26 11:00:39 +02:00
Christian Pauly e1f83d8e83 [Store] Change DB version for testing 2019-07-26 10:57:44 +02:00
Christian Pauly d10a064dfe [Store] Better debugs 2019-07-26 10:56:27 +02:00
Christian Pauly e798e39433 [Room] Fix state requests 2019-07-26 10:05:08 +02:00
Christian 4668566ec0 [Store] Fix storing of error events 2019-07-25 08:42:11 +00:00
Christian Pauly de55c201fc [Event] Make delete function async 2019-07-24 10:48:13 +02:00
Christian Pauly 4e3c1b271b [Sdk] Add Pusherrequests to sdk lib 2019-07-24 10:37:04 +02:00
Christian Pauly b827bc7714 [Event] Add more tests 2019-07-24 10:13:02 +02:00
Christian Pauly f4252f2fc3 [Client] Add more tests 2019-07-24 09:59:29 +02:00
Christian Pauly ef166a6ca1 [RoomList] Fix environment pass 2019-07-23 16:14:11 +02:00
Christian Pauly a43f5048db [RoomList] Set hasName to false 2019-07-23 15:10:38 +02:00
Christian Pauly a38d43b167 [Room] hasName false by default 2019-07-23 15:07:31 +02:00
Christian Pauly 48746641ba [Room] Dynamic name generation 2019-07-23 15:03:16 +02:00
Christian Pauly ee883a8e84 [RoomList] Fix empty room 2019-07-23 14:50:09 +02:00
Christian Pauly 3e8b54d9f0 [RoomList] Add room on event update 2019-07-23 14:42:33 +02:00
Christian b7d8b53b46 [Store] Fix db query 2019-07-23 09:20:52 +00:00
Christian cfb757df0f [Sending] Refactoring 2019-07-23 09:09:13 +00:00
Christian Pauly df7adbe5b6 [Events] Add more EventTypes and tests 2019-07-22 11:54:06 +02:00
Christian Pauly 255eea6a4c [Store] Add exceptRoomID to loadContacts 2019-07-21 07:16:09 +02:00
Marcel 0316795a49 Merge branch 'fix-classes-non-nullable' into 'master'
[Classes] Non nullable id and mxcurl

See merge request famedly/famedlysdk!39
2019-07-19 17:22:59 +00:00
Marcel 0e85e4d92b Merge branch 'sync-disable-error' into 'master'
[sync] Disable errors

See merge request famedly/famedlysdk!37
2019-07-19 17:22:45 +00:00
Christian Pauly 740ac0dc9c [Classes] Non nullable id and mxcurl 2019-07-19 19:09:34 +02:00
Christian Pauly 6d664a9073 [sync] Disable errors 2019-07-18 20:03:49 +02:00
Marcel 14b89263b7
[Store] Add missing comma 2019-07-18 20:03:45 +02:00
Christian 88197fed0f Merge branch 'master' into 'mini_fixes3'
# Conflicts:
#   lib/src/Store.dart
2019-07-18 17:53:44 +00:00
Marcel 0bf241c265
[Store] give notification idenitifier 2019-07-18 19:46:36 +02:00
Christian 069f26b039 Merge branch 'mini_fixes2' into 'master'
[Store] correct return type

See merge request famedly/famedlysdk!35
2019-07-18 17:22:21 +00:00
Marcel 584bd92f7d
[Store] correct return type 2019-07-18 19:18:01 +02:00
Marcel b3e8a81dfc
[Store] Increase DB version 2019-07-18 18:49:04 +02:00
Marcel eed51913c4
[Notifications] Fix missing DB and missing slash 2019-07-18 18:47:59 +02:00
Marcel 20fed44c68 [SetPushersRequest] Don't include null values
Took 8 minutes
2019-07-18 15:21:19 +00:00
Marcel ad13c9ab60
[Notifications] Add Store table for Notifications Cache 2019-07-18 17:07:32 +02:00
Christian 19be1bdbf4 Disable lazy loading for first sync. 2019-07-18 14:30:42 +00:00
Christian 3a01b2520e Merge branch 'fix_app_88' into 'master'
Allow Events to have less async data

See merge request famedly/famedlysdk!30
2019-07-13 06:24:04 +00:00
Marcel 84900f2c30 [Room] revert creator user
Took 12 minutes
2019-07-12 20:54:31 +02:00
Marcel e063af9fe7 [Store] Rename User table to Users
[Connection] Add HTTPtype enum
[User] Add Membership enum
[Event] Add Reply to the Event types

Took 2 hours 0 minutes
2019-07-12 09:26:07 +00:00
Marcel 0823473bdf [Event] load reply event when loading timeline
[Room] load creator user
[Timeline] fix sendUser not being passed, fix stateKeyUser not being resolved

Took 46 minutes
2019-07-11 22:17:40 +02:00
Marcel fab4604b08 [Store] remove s of Users as the table actually is named User
Took 1 minute
2019-07-03 15:55:06 +02:00
Marcel 47d92406b7 [Store] remove s of Users as the table actually is named User
Took 2 minutes
2019-07-03 15:47:36 +02:00
Marcel 547e9c8f3a [Store] remove s of Users as the table actually is named User
Took 3 minutes
2019-07-03 15:43:17 +02:00
Christian Pauly f349193ef2 Fix fromJson func 2019-07-03 13:07:56 +02:00
Christian Pauly a70b82e88d Get Sender from Store 2019-07-03 11:42:19 +02:00
Christian Pauly 3d59aae034 Fix calc displayname and add tests 2019-07-03 11:27:46 +02:00
Christian Pauly 9666b763a5 Fix Event decode bug 2019-07-03 11:19:45 +02:00
Christian Pauly 8aa27feac3 More logs 2019-07-03 11:15:55 +02:00
Christian Pauly 4a73d3131d More detailed logs 2019-07-03 11:09:45 +02:00
Christian 1abd073e43 More detailed logs for json decode error. 2019-07-03 09:00:03 +00:00
Christian Pauly 64f8fa38ee Remove Debug logs 2019-07-02 10:37:54 +02:00
Christian Pauly bafcb8001d Fix sync filters 2019-07-02 10:15:20 +02:00
Christian Pauly e96929de00 Add URI encoding 2019-07-02 09:58:29 +02:00
Christian Pauly 144902f681 Debug logs for include leave 2019-07-02 09:55:06 +02:00
Christian Pauly ea74096c35 Add Debug logs 2019-07-02 09:50:23 +02:00
Christian b8de0f054b [Room] Store prevBatch when requesting history 2019-06-28 10:32:33 +00:00
Christian Pauly c56c2f0a95 [Room] Fix the requestHistory query. 2019-06-28 11:42:57 +02:00
Christian 23bcc1acde [Room] Add method to get an event by the ID. 2019-06-28 08:59:00 +00:00
Christian Pauly 31bff2d00e [Timeline] Implement tests for request history function. 2019-06-28 08:39:43 +02:00
Christian Pauly b5698b175f [Event] sendAgain with return and mark all sending events as error on start 2019-06-28 08:10:30 +02:00
Christian db47a4d30e [RoomList] Enhance onlyLeft lists and add more tests. 2019-06-27 17:34:15 +00:00
Christian Pauly be2265f226 [Refactoring] Make analyzer happy. 2019-06-27 12:33:02 +02:00
Christian Pauly 9b0b3c0ee5 Fix Delete function 2019-06-27 10:33:43 +02:00
Christian Pauly e73d33a5e8 [Event] Refactoring 2019-06-27 10:30:26 +02:00
Christian Pauly f7e74436f4 Add dummy body to remove event 2019-06-27 10:20:47 +02:00
Christian Pauly 96623738e3 Give dummy content to remove event 2019-06-27 10:18:27 +02:00
Christian Pauly c432cc8455 Use both ID keys for events 2019-06-27 10:15:46 +02:00
Christian Pauly 939e7e738a [Event] Add functions to remove and resend an error event 2019-06-27 10:12:39 +02:00
Christian Pauly 93d904b1ae [Event] Fix wrong id reference 2019-06-27 09:44:37 +02:00
Christian Pauly 8f96088f09 Fix event_id key 2019-06-27 09:30:31 +02:00
Christian Pauly c7689419ea [Store] Fix storage for sending events. 2019-06-27 09:25:25 +02:00
Christian ef83753079 [Sending] Fix storage for sending events and add more tests. 2019-06-26 18:03:20 +00:00
Christian Pauly aec583f75d [Store] Fix status passing. 2019-06-26 19:12:26 +02:00
Christian 2d466c796b [Timeline] Fix event state change. 2019-06-26 17:03:15 +00:00
Christian Pauly 7423ab6d2b [Event] Set default status to '2' if there is no status given. 2019-06-26 17:27:27 +02:00
Marcel e652e79a98 Merge branch 'lists-enhance-fix-send-status' into 'master'
Lists enhance fix send status

See merge request famedly/famedlysdk!15
2019-06-26 15:01:15 +00:00
Christian Pauly 602a5d79cd [Room] Add documentations. 2019-06-26 16:39:52 +02:00
Christian Pauly 41d8b91f87 [Lists] Fix send status 2019-06-26 16:36:34 +02:00
Marcel e5464f1c49 [SetPushRequest] Use correct import
Took 3 minutes
2019-06-25 15:51:09 +02:00
Marcel 8ac7b01d53 [SetPushRequest] make required field required in the class too
Took 6 minutes
2019-06-25 15:39:56 +02:00
Marcel 88be572170 [Client] add setPushers
Took 15 minutes
2019-06-25 15:33:56 +02:00
Christian Pauly c3967419e6 [Lists] Check if callbacks are not null. 2019-06-25 12:34:03 +02:00
Christian Pauly e6dd0739d0 [Lists] Fix callback names 2019-06-25 12:06:26 +02:00
Christian 58a911fac3 Update famedlysdk.dart 2019-06-25 09:43:14 +00:00
Christian Pauly 66fce65dee [Lists] Add RoomList List type. 2019-06-21 13:30:39 +02:00
Christian Pauly 1b1abf7190 [Lists] Add Timeline List type. 2019-06-21 12:18:54 +02:00
Christian Pauly 372c185228 [License] Replace 'foobar' with 'famedlysdk' in all Files. 2019-06-21 09:46:53 +02:00
Marcel 253e0ecda6 [client][pushrules] Add GET Pushrules Endpoint
[sdk] Add "build_runner", "json_annotation" and "json_serializable" to dependencies required for [client][pushrules]
[test][client][pushrules] Add Tests for [client][pushrules]

Took 2 hours 13 minutes
2019-06-21 07:41:09 +00:00
Christian c41f1b3547 Fix wrong type 2019-06-18 10:33:40 +00:00
Christian Pauly 31ef612330 Merge branch 'master' of gitlab.com:famedly/famedlysdk 2019-06-18 12:11:16 +02:00
Christian Pauly fd7302bcde More tests 2019-06-18 12:06:55 +02:00
Christian 167a7155f8 Update lib/src/Room.dart 2019-06-15 07:16:45 +00:00
Christian cf60b50954 Update lib/src/Store.dart 2019-06-14 11:17:28 +00:00
Christian 6101a2251a Update lib/src/Store.dart 2019-06-14 11:11:53 +00:00
Christian d108f1f7e6 Update lib/src/Store.dart 2019-06-14 11:06:25 +00:00
Christian f038218cf4 Add some logs to direct chat storing 2019-06-14 11:04:57 +00:00
Christian Pauly ce64c110c8 Refactoring 2019-06-14 12:39:55 +02:00
Christian Pauly 13ac8e351c Load archived rooms on first sync 2019-06-14 12:39:18 +02:00
Christian Pauly 6d9c4d5dca Save ALL direct chats 2019-06-14 12:35:53 +02:00
Christian Pauly c3cd1cc6e3 Fix embarrassing non existend HTTP request method... 2019-06-14 09:52:52 +02:00
Christian Pauly baddb806ce Request may be null 2019-06-14 08:48:21 +02:00
Christian Pauly 3d8c80976a Use onError for other functions 2019-06-14 08:09:37 +02:00
Christian Pauly 23c56caa2d Use onError stream for chat creation 2019-06-14 08:07:51 +02:00
Christian Pauly c13b23dd0a Check if matrix homeserver is not null for MxContent 2019-06-14 07:45:48 +02:00
Christian Pauly 36c17c7fca Room.events must not be null 2019-06-14 07:40:11 +02:00
Christian Pauly 5c015608c0 Add client to new room object 2019-06-12 13:58:40 +02:00
Christian Pauly fea52b777f Return error on startDirectChat error 2019-06-12 13:54:04 +02:00
Christian Pauly 502623ad31 Add debug logs 2019-06-12 13:43:14 +02:00
Christian Pauly b3bb4e6531 Add removing of forgotten rooms 2019-06-12 13:22:16 +02:00
Christian Pauly 9bd377c4be Fix roomList query 2019-06-12 12:34:46 +02:00
Christian Pauly db3c3f0c6d Fix membership table column 2019-06-12 12:30:22 +02:00
Christian Pauly d5d1aa53b2 Minor fixes 2019-06-12 12:04:52 +02:00
Christian Pauly f8557c38f5 Add function for direct chat handling 2019-06-12 11:46:57 +02:00
Christian Pauly 06bcf90d6e Fix tests 2019-06-12 10:04:54 +02:00
Christian 54feb4b6a9 Update lib/src/User.dart 2019-06-12 08:02:07 +00:00
Christian 60cf1ac7fe Update lib/src/Store.dart 2019-06-12 07:52:31 +00:00
Christian 19c6c3a37d Update lib/src/Store.dart 2019-06-12 07:50:52 +00:00
Christian f530d09de3 Update lib/src/Store.dart 2019-06-12 07:48:26 +00:00
Christian fcf6b55c43 Update lib/src/Store.dart 2019-06-12 07:45:57 +00:00
Christian ae559a3379 Update lib/src/Store.dart 2019-06-12 07:44:14 +00:00
Christian 4b5322f7dd Update lib/src/Store.dart 2019-06-12 07:36:02 +00:00
Christian d940f93814 Update lib/src/Store.dart 2019-06-12 07:34:34 +00:00
Christian 595dd72f7d Update lib/src/Store.dart 2019-06-12 07:33:42 +00:00
Christian 01166cf057 Update lib/src/Store.dart 2019-06-12 07:30:12 +00:00
Christian 4c56424bab Update lib/src/Store.dart 2019-06-12 07:26:51 +00:00
Christian f40f1b732f Update lib/src/Store.dart 2019-06-12 07:24:36 +00:00
Christian 9ef4e4af41 Add logs for UserUpdates 2019-06-12 07:22:47 +00:00
Christian 7ec2cca470 Give normal text higher priority 2019-06-12 07:07:07 +00:00
Christian 030d566e98 Fix Avatar Type 2019-06-12 07:04:04 +00:00
Christian 005be2548a Use correct avatarUrl 2019-06-12 07:03:05 +00:00
Christian fa4a4a0ea8 Timeout request is null 2019-06-12 06:59:37 +00:00
Christian b7f090e3fa Fix room query 2019-06-12 06:38:19 +00:00
Christian ddd6b2a583 Add last Message to new Room object. 2019-06-12 06:26:19 +00:00
Christian 9f4ee74f22 Fix getBody method. 2019-06-12 06:22:30 +00:00
Christian e2fa2844d3 Fix getRoomFromTableRow 2019-06-12 06:13:04 +00:00
Christian Pauly 5d6f186b3c Add support for status changing event sending 2019-06-11 17:16:01 +02:00
Christian Pauly edf79f5d1c Add method to send read receipts 2019-06-11 14:13:30 +02:00
Christian Pauly e2f7791daa Add User Update class 2019-06-11 14:10:50 +02:00
Christian Pauly 56514d423f Fix typo 2019-06-11 13:45:00 +02:00
Christian Pauly 2ebb2eb24e Add method to request history 2019-06-11 13:44:25 +02:00
Christian Pauly 8be14fa58f Add power level management 2019-06-11 13:32:14 +02:00
Christian Pauly 037953be34 Add support for creating chats and direct chats 2019-06-11 13:09:26 +02:00
Christian Pauly 4833b9027f Queries for direct, groups and archived rooms 2019-06-11 12:45:14 +02:00
Christian Pauly 8983cb3138 Add request to ErrorResponse class 2019-06-11 12:31:50 +02:00
Christian Pauly 1fc329eb23 Add test for Room 2019-06-11 12:21:45 +02:00
Christian Pauly 6909bbac7d Add test for User 2019-06-11 11:53:32 +02:00
Christian Pauly cf3b73d061 Add test for Event 2019-06-11 11:48:31 +02:00
Christian Pauly fcad647c1c Refactor Event class 2019-06-11 11:23:57 +02:00
Christian Pauly 6b94ac220f Refactor User class 2019-06-11 11:13:14 +02:00
Christian Pauly efa2ed5379 Refactor Room class 2019-06-11 10:51:45 +02:00
Christian Pauly ec72849a90 Remove limitedTimeline from Rooms table. 2019-06-11 10:05:42 +02:00
Christian d16f5d972a Fix wrong table name 2019-06-11 07:13:38 +00:00
Christian d36c13a853 Fix wrong table name 2019-06-11 07:11:53 +00:00
Christian 0be37ec173 Database migration debugprints 2019-06-11 07:07:58 +00:00
Christian f969d83d04 Database changes 2019-06-11 06:59:22 +00:00
Christian 856b2890ac Database changes 2019-06-10 10:03:59 +00:00
Christian 2685b2b5e9 Add +5 seconds for timeout so sync timeout will not trigger no response from server. 2019-06-10 10:01:10 +00:00
Christian 22231f87b7 Tests for ChatTime and MxContent including bug fixes 2019-06-10 06:28:21 +00:00
Christian Pauly 76649b852b Update docs 2019-06-09 14:33:25 +02:00
Christian Pauly 5ad2d4b7ce Hunt down dependencies 2019-06-09 14:08:41 +02:00
Christian Pauly f1b468e192 Add licence header 2019-06-09 13:57:33 +02:00
Christian Pauly 28437d5b7e Add email to pubspec 2019-06-09 13:37:20 +02:00
Christian Pauly 77be6102f6 Initial commit 2019-06-09 12:16:48 +02:00