Commit graph

776 commits

Author SHA1 Message Date
Sorunome f79a85ca71
Merge branch 'master' into soru/cross-signing 2020-06-24 09:26:22 +02:00
Christian Pauly ed262c0d51 Merge branch 'soru/fix-incorrect-olm-session-create' into 'master'
Fix some olm sessions not being loaded from database

See merge request famedly/famedlysdk!356
2020-06-23 18:20:43 +00:00
Sorunome 1a9f6e38dc
add database.getRoom 2020-06-23 13:35:22 +02:00
Sorunome 439f6f0aa0
Fix some olm sessions not being loaded from database 2020-06-23 11:42:01 +02:00
Sorunome 48c03865a2
make auth_data just a json object 2020-06-23 08:30:50 +02:00
Sorunome 3d40a8d81b
remove transaction hack 2020-06-22 17:27:06 +02:00
Christian Pauly aea86aaf10 Merge branch 'soru/direct-chats' into 'master'
potentially fix direct chats going missing

Closes ChristianPauly/fluffychat-flutter#86

See merge request famedly/famedlysdk!346
2020-06-22 06:48:30 +00:00
Sorunome 2999ceec9e potentially fix direct chats going missing 2020-06-22 06:48:30 +00:00
Sorunome dbcdb6883d
better set verified 2020-06-21 21:48:06 +02:00
Sorunome 18f8d0db63
add deviceDisplayName 2020-06-21 21:38:26 +02:00
Sorunome 22d8225f46 Merge branch 'krille/fix-sending-sort-order' into 'master'
Fix sending sort order

See merge request famedly/famedlysdk!350
2020-06-20 19:50:49 +00:00
Sorunome d8cb53e32f Merge branch 'krille/fix-send-again' into 'master'
Fix send again

See merge request famedly/famedlysdk!351
2020-06-20 19:50:08 +00:00
Christian Pauly f1579a5f0f Database transaction workaround 2020-06-19 15:28:03 +02:00
Christian Pauly ee2974e51e Fix send again 2020-06-19 14:05:53 +02:00
Christian Pauly 9f8d170dd4 Fix sending sort order 2020-06-19 14:00:32 +02:00
Sorunome 12bdddee03
Better format switching to WAL mode 2020-06-16 14:26:37 +02:00
Sorunome b1ec508666
Merge branch 'master' into soru/cross-signing 2020-06-16 12:58:30 +02:00
Sorunome 77378e3ebc
switch database to wal mode 2020-06-16 12:51:29 +02:00
Sorunome c4d09268a0
add key verification test 2020-06-15 13:12:59 +02:00
Sorunome 0e0fd61c65
remove unneded print 2020-06-15 10:27:28 +02:00
Sorunome e874a5e00b
add signature verification tests 2020-06-15 10:26:50 +02:00
Sorunome 9b2952435f
add matrix api tests 2020-06-13 20:44:25 +02:00
Sorunome c233d57f9f
add online key backup test 2020-06-13 19:48:38 +02:00
Sorunome ef0a567401
finish ssss tests 2020-06-13 19:12:32 +02:00
Sorunome 7803dc4b93
add more tests 2020-06-13 10:56:39 +02:00
Sorunome 34619c065b
format 2020-06-12 17:40:08 +02:00
Sorunome 221d6c275b
fix timer stuffs 2020-06-12 17:32:35 +02:00
Sorunome aed1cf1270
handle ssss cache fetching better 2020-06-12 17:15:26 +02:00
Sorunome 6a36bb2d01
fix pipeline 2020-06-12 16:25:26 +02:00
Sorunome 3825f7292f
format 2020-06-12 16:17:28 +02:00
Sorunome 2a6a19e2b0
Request-ify room key store stuff 2020-06-12 16:17:00 +02:00
Sorunome fc5400a30c
Merge branch 'master' into soru/cross-signing 2020-06-12 14:34:22 +02:00
Sorunome 1a98634fd6 fix key request sending 2020-06-12 12:32:42 +00:00
Sorunome 5334266529
Merge branch 'master' into soru/cross-signing 2020-06-10 16:25:08 +02:00
Christian Pauly a61efa0384 Merge branch 'soru/fix-state-attack' into 'master'
Fix state attack

See merge request famedly/famedlysdk!343
2020-06-10 14:17:57 +00:00
Sorunome f485ca29d8 Fix state attack 2020-06-10 14:17:57 +00:00
Sorunome 485d88b896
Hotfix decryption can request session 2020-06-10 12:11:10 +02:00
Sorunome f261f35712
Merge branch 'master' into soru/cross-signing 2020-06-10 11:33:24 +02:00
Christian Pauly 5487b62360 Hotfix OpenIdCredentials 2020-06-10 09:12:55 +00: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
Christian Pauly cf430cc546 Hotfix setPushers 2020-06-10 06:36:16 +00:00
Sorunome 6d49b4def3
Merge branch 'master' into soru/cross-signing 2020-06-09 20:24:22 +02:00
Sorunome b8c58faaab Merge branch 'soru/modularize-e2ee' into 'master'
split encryption stuff to other library

See merge request famedly/famedlysdk!333
2020-06-09 16:13:23 +00:00
Christian Pauly 0e33634e1a Fix request openID 2020-06-09 16:05:41 +00:00
Christian Pauly a2f7dd4223 Merge branch 'soru/fix-canonical-alias' into 'master'
fix canonical alias sometimes being null

See merge request famedly/famedlysdk!337
2020-06-09 10:11:00 +00:00
Sorunome 2de03bc0e8
properly reply to room key requests 2020-06-07 15:09:11 +02:00
Sorunome 1fdd0a7db8
aslo clear ssss cache when clearing a user id 2020-06-06 15:48:57 +02:00
Sorunome 51584ad748
fix signature upload 2020-06-06 15:43:18 +02:00
Sorunome 45232be3a0
simplify key signing a tad 2020-06-06 15:19:44 +02:00
Sorunome b4e83caa89
requestify cross-signing endpoints 2020-06-06 15:17:05 +02:00
Sorunome e1679d59be
better smoothen out keys 2020-06-06 14:28:18 +02:00
Sorunome 4154c7d0eb
format and some analyze 2020-06-06 13:47:37 +02:00
Sorunome 060a772bfa
fix up a few things with key verification 2020-06-06 13:38:19 +02:00
Sorunome d4eabbb756
ssss password --> passphrase 2020-06-06 12:40:52 +02:00
Sorunome 115cd9e5b3
better cache invalidation of ssss cache 2020-06-05 22:22:07 +02:00
Sorunome 4c60369b8d
migrate to new thingy! 2020-06-05 22:03:28 +02:00
Sorunome f872d19692 fix client.api.upload not working 2020-06-05 17:20:18 +00:00
Sorunome d29fb9abfe
Merge branch 'soru/modularize-e2ee' into soru/cross-signing 2020-06-05 18:59:58 +02:00
Sorunome 7ed6dcce67
fix canonical alias sometimes being null 2020-06-05 17:12:50 +02:00
Sorunome 857775cf37
Merge branch 'master' into soru/modularize-e2ee 2020-06-05 14:29:00 +02:00
Sorunome 860051da0e
Fix redact events 2020-06-05 13:32:58 +02:00
Sorunome c47bdee9f5
Merge branch 'master' into soru/modularize-e2ee 2020-06-05 13:05:47 +02:00
Sorunome bd3c51924b to set presence you use PUT, not POST 2020-06-05 10:56:42 +00:00
Sorunome 8358dec3a5
analyze and format 2020-06-05 10:56:51 +02:00
Sorunome 086dcae907
add key manager tests 2020-06-05 10:51:11 +02:00
Sorunome fbc8f03f67
encrypt m.room_key event properly 2020-06-05 10:15:36 +02:00
Sorunome 05c799e6a5
format 2020-06-04 20:16:18 +02:00
Sorunome c94e41d393
fix tests for real 2020-06-04 18:16:22 +02:00
Sorunome f3f3231df6
add some encrypt / decrypt tests 2020-06-04 17:51:49 +02:00
Sorunome 2e46155f47
fix tests without olm 2020-06-04 14:26:35 +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 03beffbb46
also load session keys when requesting history 2020-05-30 14:09:47 +02:00
Sorunome 9971e7377e
configurable verification methods 2020-05-30 13:55:09 +02:00
Sorunome d7f2bbe2f9
smoothen out some stuffs 2020-05-30 13:22:34 +02:00
Sorunome 44e4b07999
remove obsolete comments 2020-05-30 13:19:39 +02:00
Sorunome 41a08d4c28
additional validation of received secrets 2020-05-30 13:13:42 +02:00
Sorunome a7bb8375dc
fetch from online key backup 2020-05-29 10:21:36 +02:00
Sorunome 15be6c5244
stuff and things 2020-05-29 09:06:36 +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
Sorunome d672edf394 Make room key sharing requests (hopefully) more robust and spec-compliant 2020-05-29 06:49:37 +00:00
Sorunome 6e21cff0a7
fix error thingy 2020-05-27 21:49:49 +02:00
Sorunome c779d39818
fix small stuffs 2020-05-27 21:40:58 +02:00
Sorunome dda0b17724
in-room verification to verify users instead of devices 2020-05-27 21:35:00 +02:00
Sorunome aefe029c0a
add ability to sign yourself based on ssss 2020-05-27 18:50:09 +02:00
Sorunome e4e4386178
signed vs verified logic 2020-05-27 17:37:14 +02:00
Sorunome 8d75c2a0af
format 2020-05-27 10:33:42 +02:00
Sorunome f78657957a
fix emotes if canonical alias is null 2020-05-27 10:33:22 +02:00
Sorunome fabffea1cd
verification status by user, sign manually verified keys 2020-05-27 10:13:22 +02:00
Sorunome 1c9da050c0
smoothen out verification and signature uploading 2020-05-26 15:58:14 +02:00
Sorunome c23e38a9c9
Merge branch 'master' into soru/cross-signing 2020-05-26 10:00:59 +02:00
Sorunome 2ecf4151b9
also send master key on verification and stuffs 2020-05-26 09:54:46 +02:00
Christian Pauly ad5b02e0ef Merge branch 'soru/fix-profile-check' into 'master'
Fixes profile equality check

See merge request famedly/famedlysdk!327
2020-05-26 06:40:13 +00:00
Sorunome 8a289941eb Fixes profile equality check 2020-05-26 06:40:13 +00:00
Christian Pauly 3fa4d46983 Merge branch 'soru/fix-chat-list-last-message' into 'master'
Hopefully fix room list sorting

Closes #75

See merge request famedly/famedlysdk!324
2020-05-26 06:39:51 +00:00
Sorunome 011e427056 Hopefully fix room list sorting 2020-05-26 06:39:51 +00:00
Sorunome 80c7125d1d
remove silly workaround for aes-ctr encrypt/decrypt 2020-05-25 17:55:49 +02:00
Sorunome adc5591e54
add ed25519: 2020-05-25 15:58:37 +02:00
Sorunome c13f66c85f
in theory sign others keys 2020-05-25 15:30:53 +02:00
Sorunome 97a10c7de1
Merge branch 'master' into soru/cross-signing 2020-05-25 13:22:13 +02:00
Christian Pauly cbf5069e32 Add more tests 2020-05-25 09:34:43 +00:00
Christian Pauly f7b29f3703 Ignore key requests from unknown devices 2020-05-25 07:31:17 +00:00
Sorunome 5fde85cbfa
format 2020-05-23 17:05:55 +02:00
Sorunome 280cd4fc16
first SSSS stuff 2020-05-23 17:04:27 +02:00
Christian Pauly c01f75bafa Add olm error stream 2020-05-22 15:51:45 +02:00
Sorunome 1a8ddb2750
fixes 2020-05-22 13:22:28 +02:00
Sorunome c9a0c5302a
format 2020-05-22 13:18:45 +02:00
Sorunome 29721f00a8
Merge branch 'master' into soru/cross-signing 2020-05-22 13:18:36 +02: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 74361fff0e
don't cache via db and properly handle invalid signatures 2020-05-22 11:04:27 +02:00
Christian Pauly f4a5ccdaa9 Merge branch 'soru/more-emotes' into 'master'
add emote rooms and state key room emotes

See merge request famedly/famedlysdk!318
2020-05-21 15:01:10 +00:00
Sorunome 97ef716be8 add emote rooms and state key room emotes 2020-05-21 15:01:10 +00:00
Sorunome 788353120b
accidental inifnite recursion 2020-05-21 16:55:30 +02:00
Sorunome 10372a9dbe
verified devices are not blocked 2020-05-21 16:52:25 +02:00
Sorunome fc8625d30e clear timeline events cache on limited updates 2020-05-21 14:52:14 +00:00
Sorunome eaefdb64ca
make that cleints can only use "verified" 2020-05-21 16:51:15 +02:00
Sorunome ead44e4014
fix tests and stuffs 2020-05-21 15:32:06 +02:00
Sorunome af961b99dc
get device verification status based on cross signing 2020-05-21 15:20:33 +02:00
Christian Pauly 998ee66650 Merge branch 'soru/null-device' into 'master'
make sure keys are valid

See merge request famedly/famedlysdk!313
2020-05-21 06:28:21 +00:00
Christian Pauly 9fad348d22 Merge branch 'soru/persist-inbound-session-index' into 'master'
properly persist inbound group session indexes

See merge request famedly/famedlysdk!316
2020-05-21 06:25:57 +00:00
Sorunome 7a41f4726f
properly persist inbound group session indexes 2020-05-20 10:36:05 +02:00
Sorunome a3fc73dfc1
make e2ee recovery logic optional 2020-05-20 10:24:48 +02:00
Sorunome 0fabed9cc3
make sure keys are valid 2020-05-20 09:37:32 +02:00
Christian Pauly 11d788b68f Merge branch 'soru/auto-request-room-keys' into 'master'
Automatically request for keys from other devices, if not found

See merge request famedly/famedlysdk!308
2020-05-19 09:34:13 +00:00
Sorunome 9b67992a3a Automatically request for keys from other devices, if not found 2020-05-19 09:34:11 +00:00
Sorunome b2e5ad0880
fix notification count 2020-05-19 10:15:23 +02:00
Sorunome a613c84e27 Merge branch 'soru/async-sync-processing' into 'master'
decrypt events in sync loop, making it async

See merge request famedly/famedlysdk!310
2020-05-19 08:14:46 +00:00
Sorunome f734788eda Merge branch 'soru/rotate-outbound-sessions' into 'master'
Add rotation of outbound group sessions

See merge request famedly/famedlysdk!309
2020-05-19 08:11:19 +00:00
Christian Pauly b9d041d005 close database konditional 2020-05-19 08:05:17 +00:00
Sorunome 867b9c9123
forgot to hit ctrl+s *shame* 2020-05-19 09:58:59 +02:00
Sorunome c5e4e2c751
decrypt events in sync loop, making it async 2020-05-19 09:49:37 +02:00
Sorunome a0fe8f4bad
Add rotation of outbound group sessions 2020-05-18 18:33:16 +02:00
Sorunome 09da5fa4ca
automatically clear an outbound session, if you are unable to decrypt your own messages 2020-05-18 17:31:40 +02:00
Sorunome edaaa286e3
fix decryption of some events throwing an error 2020-05-18 16:45:53 +02:00
Christian Pauly 5166dd8d51 dispose client 2020-05-18 14:01:14 +00:00
Christian Pauly a27c93e7a8 Merge branch 'krille/add-profile-cache' into 'master'
Add profile cache

Closes #65

See merge request famedly/famedlysdk!302
2020-05-18 11:45:49 +00:00
Christian Pauly a6c7d88f00 Add profile cache 2020-05-18 11:45:49 +00:00
Christian Pauly e50f6cc6c0 Merge branch 'soru/fix-last-event' into 'master'
fix lastEvent

See merge request famedly/famedlysdk!301
2020-05-18 11:42:38 +00:00
Sorunome 11a83725d1 Merge branch 'soru/emoji-verification' into 'master'
implement SAS, which is needed for emoji verification

See merge request famedly/famedlysdk!300
2020-05-18 10:57:54 +00:00
Sorunome 2615cd2727
fix lastEvent 2020-05-18 12:56:24 +02:00
Sorunome 2b8f4b0d19
remove print statement for good 2020-05-18 12:39:03 +02:00
Sorunome 50889f9f30
flutter analyze 2020-05-18 11:45:51 +02:00
Sorunome a4c693558d
generalize verification methods 2020-05-18 11:44:23 +02:00
Sorunome e87053b4f1
forgot to add 1000 to the numbers 2020-05-17 15:32:06 +02:00
Sorunome 0219a42c07
implement SAS 2020-05-17 15:25:42 +02:00
Christian Pauly f560a43669 Store incoming keys in dummy room if not found 2020-05-17 08:16:04 +00:00
Christian Pauly 81b9d79518 Merge branch 'soru/fix-lazy-session-keys' into 'master'
lazy-load group session keys

See merge request famedly/famedlysdk!293
2020-05-17 07:54:34 +00:00
Sorunome 06b601c41b lazy-load group session keys 2020-05-17 07:54:34 +00:00
Sorunome 77bfd9b19d
fix logged state on connect() 2020-05-16 10:03:59 +02:00
Christian Pauly e66a904ee0 Add tombstone enum 2020-05-16 09:47:19 +02:00
Christian Pauly 1e4f356280 Krille/implement well known 2020-05-16 06:42:56 +00:00
Christian Pauly e8436198bb Merge branch 'soru/emote-packs' into 'master'
change emote packs slightly

See merge request famedly/famedlysdk!295
2020-05-15 19:11:30 +00:00
Sorunome d6e9131b12
change emote packs slightly 2020-05-15 21:05:28 +02:00
Sorunome 9d1c7f16a5
add pill parsing to markdown 2020-05-15 21:00:10 +02:00
Christian Pauly 98d2f8d6bb Merge branch 'soru/moor' into 'master'
Switch to moor

Closes #52

See merge request famedly/famedlysdk!284
2020-05-15 18:40:17 +00:00
Sorunome f71826739c Switch to moor 2020-05-15 18:40:17 +00:00
Sorunome 39637b6c91
fix emote messages (/me) 2020-05-15 18:44:59 +02:00
Christian Pauly 7485637340 Update lib/src/room.dart 2020-05-14 07:21:52 +00:00
Christian Pauly eada53b15f Update lib/src/room.dart 2020-05-14 07:06:18 +00:00
Christian Pauly 7d0c45e3ae Update lib/src/utils/pusher.dart 2020-05-12 11:19:26 +00:00
Christian Pauly 4253f0ce9a Implement getPushers 2020-05-12 13:03:02 +02:00
Sorunome 2352eb406a add markdown parsing 2020-05-09 14:00:46 +00:00
Christian Pauly 9944844cc3 Implement localized String represantions 2020-05-06 10:13:30 +00:00
Christian Pauly fae6661b04 Fix downloadanddecrypt 2020-05-05 09:07:09 +02:00
Christian Pauly c22090a68d Fix blurry thumbnails 2020-05-04 14:03:07 +00:00
Christian Pauly 07badfc9a9 Update lib/src/room.dart 2020-05-04 08:38:12 +00:00
Christian Pauly 06f650cf57 Fix thumbnail quality and update e2ee 2020-05-04 09:33:10 +02:00
Christian Pauly 2064f53c34 Fix thumbnail scaling 2020-05-04 09:22:44 +02:00
Christian Pauly 0e3fabcef3 Make thumbnail width height and quality configurable 2020-05-04 08:59:05 +02:00
Christian Pauly f65ef4cdcf Make thumbnailsize configurable 2020-05-04 08:46:53 +02:00
Christian Pauly 6f9a52bb5a Fix clear rooms 2020-05-04 08:19:15 +02:00
Marcel 811589a895 [Room] Send correct filter on the messages endpoint
Took 6 minutes
2020-05-02 05:02:11 +00:00
Christian Pauly 4405e933dd Add change password feature 2020-04-28 16:23:01 +02:00
Christian Pauly 28a6ffaf24 Make MAX_FILE_SIZE overrideable and reduce to 1mb 2020-04-28 11:55:36 +00:00
Christian Pauly e3ced175de Fix profile uri parse 2020-04-28 11:36:20 +00:00
Christian Pauly 6f5ebe4681 [MxContent] Switch to Uri Extension 2020-04-24 09:24:06 +02:00
Christian Pauly 0e61885821 [User] Format displayname 2020-04-23 09:46:10 +00:00
Christian Pauly 7ce5002237 [MatrixFile] Fix thumbnail encoding 2020-04-23 08:18:33 +00:00
Christian Pauly 69b13bb24d [Room] Fix relates to key while encryption 2020-04-20 10:56:36 +00:00
Christian Pauly 757f61d890 [Thumbnail] Fix info size 2020-04-17 16:51:01 +02:00
Christian Pauly 81c12c81f2 [Client] Implement thumbnails 2020-04-17 14:11:13 +00:00
Christian Pauly 99b99e7ac9 [Client] Allow r0.6.0 to connect 2020-04-09 13:28:41 +00:00
Christian Pauly 7c7a0f15e5 [Client] Remove lazyloadingcheck 2020-04-02 11:29:07 +00:00
Christian Pauly 066dcbf395 [Room] Fix restore session 2020-04-02 08:39:00 +00:00
Christian Pauly aba692ba81 [Event] Fix download 2020-03-31 17:47:19 +02:00
Christian Pauly 0dcc818365 [RoomKeyRequest] Fix forwardKey 2020-03-31 17:18:37 +02:00
Christian Pauly 5f140a62ad [RoomKeyRequest] Fix index 2020-03-31 16:30:00 +02:00
Christian Pauly e098318a3f [Event] Fix send request cancellation 2020-03-31 12:24:53 +02:00
Christian Pauly 82affbc14f [Room] Improved sendFileEvent 2020-03-30 11:59:24 +02:00
Christian Pauly a3c5add79e [SDK] Refactoring with new linter rules 2020-03-30 09:08:38 +00:00
Christian Pauly 887694bbf0 [Client] Fix publish keys 2020-03-26 14:15:08 +01:00
Christian Pauly 1abda1fa13 [Client] Fix mark keys as published 2020-03-26 14:02:07 +01:00
Christian Pauly a2d9bbfc9e [MatrixIdStringExtension] Add null check 2020-03-25 13:56:49 +01:00
Christian Pauly c160a7c9ca [Room] Ignore errors on requestUser 2020-03-25 13:09:42 +01:00
Christian Pauly 44993f3506 [Client] Fix timeout exception 2020-03-25 11:03:47 +01:00
Christian Pauly 69ee4ffd08 [Client] Send request cancellation unencrypted 2020-03-24 09:13:39 +01:00
Christian Pauly bcb12d8a4b [Client] Add global push mute method 2020-03-23 11:47:55 +01:00