Commit Graph

1179 Commits

Author SHA1 Message Date
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
Sorunome 5431056c1c Merge branch 'krille/implement-canrequesthistory' into 'main'
feat: Implement can request history calculation

See merge request famedly/famedlysdk!659
2021-02-26 16:09:17 +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 29d0e673e0 fix: Sync error handling 2021-02-24 09:17:41 +01:00
Sorunome e7c8e754a1
chore: Update matrix scheme parsing to match updated MSC 2021-02-23 16:34:43 +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
Nicolas Werner ac1ad1b897 fix: escape attributes in markdown less aggressively 2021-02-17 22:56:31 +01:00
Sorunome 681b27e269
fix: Don't allow transitive trust unless it is for ouself 2021-02-15 12:19:05 +01:00
Sorunome 34b15e45fc
fix: Better logic when to auto-trigger self-sign 2021-02-13 15:03:10 +01:00
Sorunome 6c2fc1679a
feat: Auto-selfsign and auto-cache when opening ssss keys 2021-02-13 14:55:09 +01:00
Krille Fear fb5a0bc6a2 Merge branch 'soru/membership-null' into 'main'
fix: Make defaults catch if constructor is null

See merge request famedly/famedlysdk!647
2021-02-13 10:38:49 +00:00
Christian Pauly fc8563849a feat: Custom Exception and return type for Change Homeserver 2021-02-13 09:08:56 +01:00
Sorunome f08dabaf03
fix: Make defaults catch if constructor is null 2021-02-11 12:09:44 +01:00
Marcus ff04b1cce5 Merge branch 'krille/uia-cancel' into 'main'
feat: Implement cancel uiarequest

See merge request famedly/famedlysdk!644
2021-02-10 12:46:10 +00:00
Krille Fear 6d7ab8e1d4 Merge branch 'soru/cancel-broadcast-verify' into 'main'
fix: Allow to broadcast cancels during key verification

See merge request famedly/famedlysdk!643
2021-02-10 12:44:21 +00:00
Christian Pauly fd05f642d8 feat: Implement cancel uiarequest 2021-02-10 13:41:09 +01:00
Sorunome 2d70360a8d
fix: Better detection if x-signing and megolm backup is enabled 2021-02-10 13:35:45 +01:00
Sorunome d07b663866
fix: Allow to broadcast cancels during key verification 2021-02-10 13:05:09 +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
Sorunome 0462863ce6
fix: Cache ssss keys if using an existing ssss in bootstrapping 2021-02-03 14:47:42 +01:00
Sorunome 8a4af0c0ea
chore: add keyOrPassphrase to cross-signing selfVerify 2021-02-03 13:02:38 +01:00
Sorunome 0c4db25d05
feat: Add a way to string-encode a recovery key 2021-02-03 11:34:56 +01:00
Sorunome 650484c306 Merge branch 'krille/olmerrorhandling' into 'main'
change: Olm exception handling

See merge request famedly/famedlysdk!633
2021-02-03 10:09:43 +00:00
Krille Fear 1236e0bec2 Merge branch 'krille/bootstraptrycatch' into 'main'
chore: More try catch in bootstrap

See merge request famedly/famedlysdk!630
2021-02-03 10:08:37 +00:00
Krille Fear a492fc8f96 Merge branch 'krille/updateuserdevicekeys' into 'main'
fix: Dont update user device keys if logged out

See merge request famedly/famedlysdk!628
2021-02-03 10:08:31 +00:00
Krille Fear f58da0c33f Merge branch 'krille/invite-direct-chat' into 'main'
chore: Determine invites as direct chats too

Closes app#1110

See merge request famedly/famedlysdk!624
2021-02-03 10:08:24 +00:00
Christian Pauly 9fac03639e change: Olm exception handling 2021-02-03 11:01:01 +01:00
Sorunome 21a5854fbf
fix: Attempt event decryption on fetching replied events 2021-02-02 12:51:43 +01:00
Christian Pauly ad39e3af25 chore: More try catch in bootstrap 2021-01-29 11:18:18 +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 94e3e5f681 chore: Determine invites as direct chats too 2021-01-26 14:04:55 +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
Sorunome a35266f1e4
feat: Replay last sent olm message on olm session recovery from other device 2021-01-20 12:50:52 +01:00
Sorunome 44a1bcfd57
fix: Accidental pills in URLs 2021-01-20 12:02:40 +01:00
Krille Fear 8de72c869a Merge branch 'soru/fix-emotes-msc-compliance' into 'main'
fix: Emotes MSC compliance

See merge request famedly/famedlysdk!619
2021-01-20 09:42:26 +00:00
Sorunome 70a4dad1c3
fix: Emotes MSC compliance 2021-01-20 10:36:06 +01: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
Sorunome 88f8a57863
fix: Correctly generate reply fallbacks 2021-01-14 13:51:17 +01:00
Krille Fear 347a1ee6e0 Merge branch 'krille/hide-verification' into 'main'
fix: Hide verification timeline events in lastEvent

Closes app#1059

See merge request famedly/famedlysdk!612
2021-01-14 12:21:15 +00:00
Marcus 0346975894 Merge branch 'krille/setunread' into 'main'
change: setUnread locally

Closes app#1045

See merge request famedly/famedlysdk!611
2021-01-13 13:58:19 +00:00
Christian Pauly c94da38438 fix: Hide verification timeline events in lastEvent 2021-01-13 13:30:47 +01:00
Christian Pauly fea4dea6a9 feat: Request history on limited timeline 2021-01-13 08:45:24 +01:00
Christian Pauly 783f734713 change: setUnread locally 2021-01-13 08:41:36 +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 8b13df8c9d refactor: Add json parsing for encryption and encrypted content 2021-01-08 13:26:25 +01:00
Christian Pauly 39b776716c refactor: Olm Exceptions 2021-01-07 12:53:49 +01:00
Sorunome 33500012b2 Merge branch 'soru/other-aggregation-order' into 'main'
fix: Prioritize specced replies over unspecced event aggregations

See merge request famedly/famedlysdk!603
2021-01-05 14:44:56 +00:00
Sorunome c22615d8cd
fix: Prioritize specced replies over unspecced event aggregations 2021-01-05 15:32:47 +01:00
Christian Pauly 88403d19ba fix: Dont run background task after logged out 2021-01-05 15:15:39 +01:00
Krille Fear 2efe404e13 Merge branch 'soru/disable-master-autoverify' into 'main'
fix: Disable auto-verify own master key for now

See merge request famedly/famedlysdk!602
2021-01-05 13:58:37 +00:00
Sorunome a0f7dd4732
fix: Disable auto-verify own master key for now 2021-01-05 14:54:40 +01:00
Christian Pauly e806bb9770 refactor: Add verbose logs and refactor something 2021-01-05 14:44:15 +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 19d96595cc
feat: Add identifier string parsing 2021-01-01 15:28:25 +01:00
Sorunome cd9f23d6c4
fix: Don't block file decrypting 2020-12-31 20:33:18 +01:00
Sorunome f6589f9596
fix: Properly clear in-memory outbound sessions when clearing cache 2020-12-31 12:58:41 +01:00
Sorunome 734ec0357b
fix: Throw an error if all existing olm sessions are corrupted 2020-12-31 10:45:22 +01:00
Sorunome 08dcce6225
chore: Add more debugging logs 2020-12-30 18:50:40 +01:00
Sorunome add19c73a0
fix: Load multiple olm sessions from the database at once for increased performance 2020-12-30 12:52:54 +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
Krille Fear 03b9c6e2ee Merge branch 'soru/animated-thumbnail' into 'main'
feat: Add animated property to thumbnails

See merge request famedly/famedlysdk!590
2020-12-29 09:38:47 +00:00
Sorunome 58044be1ba
feat: Add animated property to thumbnails 2020-12-29 10:32:18 +01:00
Christian Pauly 19905e348a fix: Missing null check 2020-12-29 09:44:13 +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 768baa7602
chore: Implement a proper deep-copy function for json maps 2020-12-28 14:35:21 +01:00
Sorunome c6f718adcc
fix: Sort state events of history requests correctly 2020-12-27 10:55:41 +01:00
Christian Pauly f91349a45e fix: sendTypingNotification 2020-12-27 09:58:14 +01:00
Christian Pauly bce0c1d485 Merge branch 'krille/magicstrings' into 'main'
refactor: Replace some magic strings

See merge request famedly/famedlysdk!584
2020-12-23 11:28:43 +00:00
Christian Pauly 79fe7b0878 refactor: Replace some magic strings 2020-12-23 12:14:16 +01:00
Christian Pauly dacd007780 fix: Clear logs on clear() 2020-12-23 11:32:58 +01:00
Sorunome 48904b3a1b
fix: Cache the result of the self-signature check 2020-12-23 10:52:39 +01:00
Marcus Hoffmann 54fc29f203 clear cache fix 2020-12-22 17:34:50 +01:00
Sorunome 0ed5c44919 Merge branch 'soru/verify-device-signatures' into 'main'
fix: Verify device signatures before storing devices and block those with invalid signatures

See merge request famedly/famedlysdk!578
2020-12-22 09:27:09 +00:00
Sorunome 6f9deb5ae2
fix: Verify device signatures before storing devices and block those with invalid signatures 2020-12-22 10:22:42 +01:00
Sorunome f5b1c5fc5f
fix: Don't assume a power level of a person is an int 2020-12-22 10:05:44 +01:00
Sorunome b00a9e8834
feat: Better determine which devices to encrypt to 2020-12-21 15:26:46 +01:00
Sorunome dfd88277b9 Merge branch 'soru/autoreply-more-key-requests' into 'main'
feat: Auto-Share megolm sessions with other users we know for a fact are...

Closes #127

See merge request famedly/famedlysdk!570
2020-12-21 14:08:17 +00:00
Sorunome df1c249011
feat: Auto-Share megolm sessions with other users we know for a fact are allowed to see said message 2020-12-21 14:41:44 +01:00
Christian Pauly cd4dafcd45 chore: Nicer logs in tests 2020-12-21 14:21:12 +01:00
Christian Pauly 3d6dbc9dc3 chore: Implement logoutput 2020-12-21 09:35:36 +01:00
Christian Pauly 715c5ccfb6 fix: Logfilter 2020-12-19 16:43:03 +01:00
Christian Pauly 57286d4c28 feat: Use logger package 2020-12-19 12:04:25 +00:00
Sorunome 405306f84e
feat: Add == operator to the Receipt, User and Room objects 2020-12-19 12:15:50 +01:00
Christian Pauly fbd7393fce fix: Dont create new megolm session if one is creating 2020-12-17 12:55:08 +01: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 d3c44687f6 fix: Missing null check which F*cks me up! 2020-12-14 13:24:39 +00:00
Christian Pauly 622d5f4b0d fix: Make AuthenticationData type and session optional 2020-12-11 11:20:03 +01:00
Christian Pauly a7fa118aa4 Merge branch 'krille/follow-up-clean-up-bootstrap' into 'main'
refactor: Follow up clean up bootstrap

See merge request famedly/famedlysdk!559
2020-12-11 10:14:54 +00:00
Christian Pauly 6657e073a0 refactor: Follow up clean up bootstrap 2020-12-11 09:57:45 +01:00
Christian Pauly cb4d4f3229 Merge branch 'dubutx-main-patch-24260' into 'main'
Add missing token property when login

Closes #135

See merge request famedly/famedlysdk!558
2020-12-10 11:51:48 +00: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
Ray Wang b37b347022 Add missing token property when login. 2020-12-10 02:11:48 +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 5167e92913 feat: Update room api 2020-12-04 12:23:40 +01: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
Marcus Hoffmann 2e3a2d38c0 fix: mark read wasn't sending read receipts 2020-11-26 01:58:49 +01:00
Christian Pauly 20ae1ae20e fix: Push Rule getter 2020-11-25 20:16:42 +01:00
Sorunome bed7de81c7
fix: Wrong emote pack identifier 2020-11-25 15:17:22 +01:00
Marcus Hoffmann 9b3f9e4ef7 feature: allow marking rooms as unread 2020-11-25 12:03:19 +01:00
Christian Pauly 01ce832aaa fix: 3pid api bugs 2020-11-24 13:48:57 +01:00
Christian Pauly 9181701df0 fix: Display stateKey when changing displayname 2020-11-23 17:35:50 +01:00
Christian Pauly ab8eb71fee fix: Unban 2020-11-22 21:05:34 +01:00
Christian Pauly 411d29cc89 feat: Implement room tombstones 2020-11-21 15:28:05 +01:00
Christian Pauly 0697d47cc2 refactor: Minor init refactoring 2020-11-19 17:02:07 +01:00
Sorunome b67ab870fa
fix: Use Uri.tryParse where applicable 2020-11-19 15:20:27 +01:00
Sorunome b1709ca8c3
feat: More advanced attchment handling methods 2020-11-18 14:56:14 +01:00
Christian Pauly c8d5bbfd14 fix: Allow null values in json 2020-11-12 06:40:10 +00: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
Sorunome 588d7eb1a6
fix: Set new state events by sortOrder, rather than originServerTs 2020-11-08 15:13:02 +01:00
Sorunome c509144987
fix: Fetching history sometimes re-sorting events in the timeline 2020-11-08 14:54:19 +01:00
Sorunome 66572bd032
feat: Check if event type is known 2020-11-08 13:52:10 +01:00
Sorunome 5aec7aab32
fix: Properly handle redacted events in event.getDisplayEvent 2020-11-07 11:40:47 +01:00
Sorunome 33b1e36efd
fix: Timeline history requests causing "scrolling" and sometimes ordering things wrong 2020-11-07 11:32:51 +01:00
Christian Pauly 793d398d72 fix: Automatic leave broken invites 2020-11-06 09:43:48 +01:00
Christian Pauly cbae6b9c84 fix: Better handling leave broken room on join 2020-11-05 14:03:58 +01:00
Christian Pauly 388598ef67 fix: Join broken room handling 2020-11-05 13:43:36 +01:00
Sorunome 15d817023d
feat: Decrypt events on megolm key receiving better 2020-10-31 12:08:49 +01:00
Sorunome 5924e57cf1
feat: Add broadcast to-device verification 2020-10-30 11:40:19 +01:00
Christian Pauly f9f18641e3 refactor: Connection error handling 2020-10-29 10:42:05 +01:00
Sorunome 955fb747c2
fix: Only look at online keybackup for automated requests 2020-10-28 11:27:36 +01:00
Sorunome 412da6ae0c
fix: Properly rotate megolm session on device changes 2020-10-26 11:55:47 +01:00
Christian Pauly 5381c3935c refactor: Check server 2020-10-26 08:33:25 +00:00
Sorunome 343c26b3ed fix: Decrypt last message on received megolm key 2020-10-26 07:49:02 +00:00
Sorunome ad0192e8e1
fix: Greatly improve latex markdown 2020-10-24 12:08:23 +02:00
Christian Pauly 66e590073e refactor: Event Update Type 2020-10-22 13:01:35 +02:00
Sorunome be6824b746
feat: Add LaTeX markdown rendering as per MSC2191 2020-10-21 11:20:19 +02:00
Sorunome 090f0c326c
fix: Do not require unrequired field in supported versions response 2020-10-19 18:10:07 +02:00
Sorunome d116a52ea9
fix: Better handle olm session recovery 2020-10-17 12:03:54 +02:00
Sorunome 9632d68b92
fix: one itme keys response failure may be null 2020-10-17 11:16:43 +02:00
Christian Pauly 8908f33393 fix: Logout from outside 2020-10-15 09:17:28 +02:00
Sorunome 01bb3f5b50
fix: Make key backup work in web 2020-10-14 12:18:20 +02:00
Sorunome 2e941b85e9 fix: Delete files older than 30 days 2020-10-08 13:02:20 +00:00
Christian Pauly 0761d33b6f refactor: Database first to single 2020-10-08 12:48:56 +00:00
Sorunome c571fe4dd5 fix: don't assume msgtype is a string 2020-10-08 12:29:59 +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
Christian Pauly 84cc925b08 fix: Mimetype null 2020-09-28 12:43:23 +02:00
Sorunome ab97c596ac
chore: Add better debug logging for corrupt sessions 2020-09-28 10:58:24 +02:00
Sorunome 877ff9963c
fix: Don't sort rooms too often 2020-09-27 10:54:54 +02:00
Sorunome b6754fbc46
chore: update emote stuff 2020-09-24 15:59:46 +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
Sorunome 86a4f90a5a
fix: Run automated key requests in root zone 2020-09-21 18:11:14 +02:00
Sorunome 70939a7c9c
fix: Message index replay attack check 2020-09-21 10:24:15 +02:00
Sorunome 0ff971faa9
fix: Obay variant selectors for emoji regex 2020-09-21 08:45:12 +02:00
Sorunome d42979da12
fix: Emoji regex incorrectly using multiline 2020-09-20 19:09:32 +02:00
Sorunome ba7a01ddea
fix: emoji regex typo 2020-09-20 11:24:56 +02: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 3187275ed7
fix: Don't query /members over and over 2020-09-18 12:41:26 +02:00
Sorunome f6259efa59
fix: Better handle online key backup 2020-09-18 12:25:25 +02:00
Sorunome 024a27bfc2
fix: Back off of failed key queries 2020-09-18 10:24:14 +02:00
Sorunome 053585852e
Merge branch 'send-location' of gitlab.com:JohnAZoidberg/famedlysdk into main 2020-09-18 09:43:10 +02:00
Christian Pauly 0fa2046c41 fix: Missing null check 2020-09-17 16:52:55 +02:00
Sorunome 5d5c7fa8b4
fix: Catch all root zone exceptions 2020-09-17 12:59:40 +02:00
Christian Pauly bc8fef4a94 fix: Remove pubspec.lock from repo 2020-09-16 14:41:09 +02:00
Christian Pauly 0871e218d1 refactor: Json signature check 2020-09-16 12:29:21 +00:00
Christian Pauly df2cfb3faf fix: Ask only own devices on automated key requests 2020-09-16 13:42:05 +02:00
Christian Pauly b05e4da34f fix: Last event calculation 2020-09-16 10:23:37 +02:00
Sorunome d9c4472cac
feat: Add emote helpers 2020-09-15 19:03:55 +02:00
Sorunome c90e18b55d
fix: Handle domains with port or ipv6 addresses correctly 2020-09-15 12:40:29 +02:00
Sorunome cb1ec86b32
feat: Periodically fetch ssss secrets from other devices 2020-09-10 14:46:30 +02:00
Sorunome 2c7ae759f8
fix: Remove potential race conditions and database issues with OTK upload 2020-09-10 14:07:25 +02:00
Sorunome b5ac500136
fix: Handle failed to send messages in low network significantly better 2020-09-10 13:19:58 +02:00
Sorunome bbc1b63695
feat: Auto-verify own master key, if there is a valid signature chain within the same account 2020-09-10 13:04:24 +02:00
Sorunome 64b8e01444 fix: Handle duplicate indexes properly 2020-09-10 10:48:59 +00:00
Sorunome e08f35b5d0
fix: Don't trust the info block of events 2020-09-10 11:12:52 +02:00
Christian Pauly 5d45c224a3 fix: Mark pending events as failed on startup 2020-09-10 10:01:44 +02:00
Sorunome aa9940fdbc
fix: Room.requestUser sometimes throws an error 2020-09-10 09:37:56 +02:00
Sorunome 99d536b14f
feature: Upload to online key backup 2020-09-09 09:53:26 +02:00
Christian Pauly 8899f4c677 fix: Remove logs in event constructor trycatch 2020-09-08 09:19:26 +00:00
Sorunome 8a104b34ff
fix: potentially fix SSSS passphrase not working for some accounts 2020-09-07 16:31:29 +02:00
Sorunome f7e63097b4 chore: Update emotes to match MSC 2020-09-07 09:34:14 +00:00
Christian Pauly 8a0cc70cfe fix: prev content error log in web 2020-09-07 11:16:52 +02:00
Lukas Lihotzki e6d96ad8ed feat(sync): configurable sync 2020-09-07 11:03:24 +02:00
Sorunome 54a128d2c5
fix: Properly detect sicket message types 2020-09-06 15:40:12 +02:00
Sorunome 5863c8e168
fix: Run advanced things in database handling in their own separate zone 2020-09-06 15:06:41 +02:00
Sorunome 089ce88b57
chore: Add tests to Event.downloadAndDecryptAttachment 2020-09-04 11:00:56 +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
Christian Pauly 35e48f9641 Fix: prev_content error message 2020-08-25 09:40:30 +00:00
Christian Pauly c46f4ba066 refactor: timeline 2020-08-22 07:10:46 +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 0d159c2db4 Fix: Send messages in web delay 2020-08-19 09:08:30 +02:00
Sorunome 631b28eab2
fix: Migrations don't fail anymore if they were partly completed 2020-08-18 14:00:42 +02:00
Christian Pauly 84c27129d2 Hotfix: Send correct message type 2020-08-17 16:29:29 +02:00
Sorunome ea59c4bd94
refactor(keybackup): Update database for stored megolm keys to prepare for proper online key backup 2020-08-17 09:10:51 +02:00
Sorunome 20d72eb8d7
fix: Event statuses progress and are saved correctly 2020-08-17 08:54:16 +02:00
Christian Pauly cbc66ea308 Fix unencrypted calls 2020-08-17 08:46:04 +02: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 a288216e03 Add call state localizations 2020-08-15 14:46:08 +02:00
Christian Pauly 61b32e0bd9 Hotfix client 2020-08-14 18:22:31 +02:00
Christian Pauly a861ceed5f Fix turn server credentials type 2020-08-14 14:54:19 +02:00
Sorunome 3d2476cfdb fix: Have matrix id string extension obay the proper grammar 2020-08-13 09:03:44 +00: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
Sorunome 574fe27101
feat: Add Event.getDisplayEvent, which fetches an event based on all edits etc. 2020-08-11 13:44:42 +02:00
Christian Pauly c184dfba6b Don't show potential session keys in logs 2020-08-10 10:42:14 +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
Sorunome 2796ca613a Fix resending messages reusing an existing transaction id 2020-08-06 06:51:06 +00:00
Daniel Schaefer ede4fd1416 Implement function to send m.location event
Allows to share the location with a room.
2020-08-05 23:01:03 +02:00
Christian Pauly bbd5749aec Fix storing of event status 2020-08-05 05:57:10 +00:00
Christian Pauly a11a0b5925 Add example 2020-08-05 05:57:02 +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
Christian Pauly fe700b229c Fix prev_content bug 2020-08-04 08:26:33 +00:00
Christian Pauly d4a7345b8a Enable transactions again to fix web 2020-08-03 13:28:30 +00:00
Christian Pauly 938540eca5 Detect the file message type 2020-08-01 13:04:03 +00:00
Sorunome 18a790be84 put key request in try...catch 2020-08-01 07:06:39 +00:00
Christian Pauly dc1ed0c6e2 Use SyncUpdate for pending messages 2020-07-30 08:48:47 +00:00
Christian Pauly 5bf52664e1 Merge branch 'soru/key-verification-fixes' into 'master'
some key verification fixes and temporarily disable transactions

See merge request famedly/famedlysdk!403
2020-07-30 08:33:44 +00:00
Sorunome 69431a1aff
some key verification fixes and temporarily disable transactions 2020-07-30 09:57:45 +02:00
Sorunome 6915781e6a
Prevent m.relates_to to be removed from the status=1 object in encrypted rooms 2020-07-29 11:43:27 +02:00
Christian Pauly a28ab5fc60 Merge branch 'soru/remove-trailing-slash' into 'master'
Remove trailing slash in checkServer

Closes ChristianPauly/fluffychat-flutter#130

See merge request famedly/famedlysdk!400
2020-07-27 07:40:25 +00:00
Sorunome 6696a8b3ca Remove trailing slash in checkServer 2020-07-27 07:40:25 +00:00
Sorunome f48f6bca12 Properly imlement event aggregations 2020-07-27 07:39:48 +00:00
Sorunome 14c8377a2f
make sure that no http requests are done inside of /sync 2020-07-26 07:54:03 +02:00
Sorunome 31614364d3 add update filters 2020-07-25 14:46:36 +00:00
Sorunome 6cd745bd1a
Add data-mx-emote to emotes 2020-07-24 17:59:39 +02:00
Sorunome 84a94f5c9d
format 2020-07-24 15:44:55 +02:00
Sorunome d4818bd677
forgot to ctrl+s 2020-07-24 15:37:40 +02:00
Sorunome 9cb4dab9d4
test web 2020-07-24 15:37:00 +02:00
Sorunome ff2de35d28
test web 2020-07-24 14:53:06 +02:00
Sorunome c68487ac21 fix issue with sending messages 2020-07-23 08:09:00 +00:00
Sorunome a46942a140 Merge branch 'soru/fix-members-requests' into 'master'
try to load members from database first and cache them in-memory

Closes app#596

See merge request famedly/famedlysdk!382
2020-07-21 08:05:48 +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
Sorunome 0ece2717e0
Merge branch 'master' into soru/fix-members-requests 2020-07-20 11:53:55 +02:00
Christian Pauly b8f80c7071 Fix room sorting 2020-07-20 07:46:46 +00:00
Christian Pauly 811c00c350 Merge branch 'soru/use-prev-content-username-fallback' into 'master'
use prev_content to calculate displayname and avatar_url, if content unavailable

See merge request famedly/famedlysdk!386
2020-07-20 06:33:03 +00:00
Christian Pauly 5b87d389b0 Merge branch 'soru/database-connect' into 'master'
add Databse.connect to be able to run in isaltes

See merge request famedly/famedlysdk!387
2020-07-20 06:31:26 +00:00
Sorunome 2214ac2d0a fixes a racing condition in key verification 2020-07-20 06:31:05 +00:00
Sorunome 175cb0fbd2
add Databse.connect to be able to run in isaltes 2020-07-17 13:20:23 +02:00
Sorunome 864151ec83
use prev_content to calculate displayname and avatar_url, if content unavailable 2020-07-17 12:02:43 +02:00
Christian Pauly 2c9a09ed5e Merge branch 'soru/fix-migration' into 'master'
indexes are already created when creating a talbe

Closes app#591

See merge request famedly/famedlysdk!381
2020-07-14 16:21:37 +00:00
Sorunome 8294231f78
url in PusherData is optional 2020-07-14 12:00:37 +02:00
Sorunome 4394196ba1
try to load members from database first and cache them in-memory 2020-07-14 11:30:13 +02:00
Sorunome 79ea85bf4d
indexes are already created when creating a talbe 2020-07-14 10:43:21 +02:00
Lukas Lihotzki 8d83d4a699 refactor matrix_api query strings and enums 2020-07-08 07:15:26 +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 4790925929 Merge branch 'soru/no-contains-key' into 'master'
Better validate event contents

See merge request famedly/famedlysdk!353
2020-06-29 12:02:18 +00:00
Sorunome fd406987c1 Better validate event contents 2020-06-29 12:02:18 +00: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
Christian Pauly 7e9c8f88f3 Implement calcDisplayname without local part 2020-06-29 08:40:16 +00:00
Christian Pauly 01daa3ec44 Merge branch 'ChristianPauly-master-patch-89224' into 'master'
Fix wellknown with trailing slash

See merge request famedly/famedlysdk!369
2020-06-28 11:54:01 +00:00
Christian Pauly 386248a046 Fix wellknown with trailing slash 2020-06-28 11:54:00 +00:00
Sorunome 163cbdb923
Hotfix: account_data stored incorrectly in the database 2020-06-26 18:46:54 +02:00
Lukas Lihotzki 58dcedb883 Use mime instead of mime_type 2020-06-25 17:35:46 +02:00
Sorunome 663d0a2638 parse order of tags better 2020-06-25 14:05:10 +00:00
Sorunome 62f63ebf1f Merge branch 'soru/olm-session-recovery' into 'master'
Adds olm session recovery

See merge request famedly/famedlysdk!355
2020-06-25 08:01:37 +00: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
Sorunome 8de4b5acc0
update link in comments 2020-06-25 09:46:01 +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 6846b7d5c6 Use timestamp as sort order 2020-06-25 09:04:26 +02:00
Christian Pauly e6cf5cb927 Fix direct chats 2020-06-25 06:59:03 +00:00
Christian Pauly 13b3c0df4d Add room tag support 2020-06-24 09:22:08 +00:00
Christian Pauly 2afd0bb3a8 Implement pinned events 2020-06-24 08:41:52 +00:00
Sorunome fb48837d08
update function call 2020-06-24 09:30:25 +02:00