Commit Graph

620 Commits

Author SHA1 Message Date
Morgan Pretty c04d4544f2 Added more unit tests
Refactored the existing unit tests to use Quick
Started adding unit tests for a number of the OpenGroupAPI network models
Added unit tests for the SessionId type
2022-03-02 17:11:18 +11:00
Morgan Pretty a26ee12f8d Further work on Id Blinding
Renamed the setter for the SOGS 'Server' object for consistency
Updated the Curve25519Kit repo to use an Oxen fork
Updated the MockDataGenerator to accomodate the latest changes
Updated the ConversationVC to better support getting replaced when the conversion from blinded to unblinded happens while on that screen
Added a cache for the mapping between blinded ids and standard ids (gets cached whenever a valid match is found)
Added a migration to remove the old 'authToken, 'lastMessageServerId' and 'lastDeletionServerId' collections (redundant in SOGS V4)
2022-03-01 14:06:37 +11:00
Morgan Pretty 3e97782d18 Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Conversations/ConversationVC.swift
#	Session/Meta/Translations/de.lproj/Localizable.strings
#	Session/Meta/Translations/en.lproj/Localizable.strings
#	Session/Meta/Translations/es.lproj/Localizable.strings
#	Session/Meta/Translations/fa.lproj/Localizable.strings
#	Session/Meta/Translations/fi.lproj/Localizable.strings
#	Session/Meta/Translations/fr.lproj/Localizable.strings
#	Session/Meta/Translations/hi.lproj/Localizable.strings
#	Session/Meta/Translations/hr.lproj/Localizable.strings
#	Session/Meta/Translations/id-ID.lproj/Localizable.strings
#	Session/Meta/Translations/it.lproj/Localizable.strings
#	Session/Meta/Translations/ja.lproj/Localizable.strings
#	Session/Meta/Translations/nl.lproj/Localizable.strings
#	Session/Meta/Translations/pl.lproj/Localizable.strings
#	Session/Meta/Translations/pt_BR.lproj/Localizable.strings
#	Session/Meta/Translations/ru.lproj/Localizable.strings
#	Session/Meta/Translations/si.lproj/Localizable.strings
#	Session/Meta/Translations/sk.lproj/Localizable.strings
#	Session/Meta/Translations/sv.lproj/Localizable.strings
#	Session/Meta/Translations/th.lproj/Localizable.strings
#	Session/Meta/Translations/vi-VN.lproj/Localizable.strings
#	Session/Meta/Translations/zh-Hant.lproj/Localizable.strings
#	Session/Meta/Translations/zh_CN.lproj/Localizable.strings
2022-02-28 10:46:45 +11:00
Morgan Pretty cc2a077a6c Started working on `MessageRequestResponse` handling for SOGS message requests
Pointing Curve25519 to use a fork that exposes an XEd25519 conversion method
Fixed an issue where I had broken all message sending due to the SnodeAPI casting Onion responses to `Any`
2022-02-25 17:48:09 +11:00
Morgan Pretty 30cbe77366 Added labels to the NewConversationButtonSet 2022-02-22 16:59:10 +11:00
Morgan Pretty f5e48cec01 Updated the project to use the Oxen fork of Sodium (instead of my one) 2022-02-21 14:59:51 +11:00
Morgan Pretty ef09d4d5aa Additional encryption work on id blinding
Got the updated blinding logic working (at least when authenticating a request - still need to deal with message signing and verification)
Storing the server capabilities in the database now so we can correctly blind requests based on them
Renamed the remaining 'v2' functions and classes to just be 'OpenGroup' since there isn't a 'V2' anymore
Cleaned up a few TODOs and functions
2022-02-17 18:33:23 +11:00
Morgan Pretty eb927c36a9 Started cleaning up some of the SOGS and Onion Requests structure
Cleaned up the OnionRequestAPI so we don't need the LegacyOnionRequestAPI
Added requests for the user endpoints
Added deprecated flags to the legacy endpoints and functions
Added some logic to start handling the new poll (batch) response
Started adding unit tests for the OpenGroupAPI functions
2022-02-15 13:55:59 +11:00
Morgan Pretty 67d2a13dfb Ran pod install to update the Podfile.lock 2022-02-04 11:50:57 +11:00
Ryan Zhao 18fea4ab73 Merge branch 'dev' into global-search 2022-01-27 15:43:54 +11:00
Morgan Pretty 03fb5cbeeb Cleanup and tweaks
Fixed some compilation issues.
Removed an unused dependency.
Cleaned up the Podfile to minimise duplication.
Pointed at an oxen fork of SignalCoreKit instead of a personal one.
2022-01-25 12:05:45 +11:00
Morgan Pretty 9994c04f1e Updated the Podfile to fix M1 Mac build issues 2022-01-10 10:38:54 +11:00
coo1k e328ab9bfd Support for App Links 2021-06-01 00:39:11 -07:00
Niels Andriesse a1c23394d6 Remove unused pods 2021-03-05 09:49:25 +11:00
Niels Andriesse 4958d3d368 Implement ONS API 2021-03-03 11:16:34 +11:00
nielsandriesse afeabf0fe9 Potentially fix race condition 2021-02-24 09:53:17 +11:00
Niels Andriesse 6a810d959b Fix initial scroll position bug 2021-02-18 11:02:19 +11:00
nielsandriesse bffde9451c Update CocoaPods 2021-02-15 09:12:06 +11:00
Niels Andriesse aa027a28c5 Implement preliminary link preview view 2021-02-11 11:16:35 +11:00
nielsandriesse 1924e01edc Merge branch 'multi-device' into ui 2021-02-10 11:27:39 +11:00
nielsandriesse 4803b96eb1 Only handle the first config sync message after restoration 2021-02-10 10:19:46 +11:00
Niels Andriesse 90e53e5cef Redesign conversation screen part 1 2021-02-09 15:14:18 +11:00
Niels Andriesse f2f3025554 Remove unused pod 2021-01-29 11:08:52 +11:00
Niels Andriesse 464e8864af Clean up onboarding 2021-01-29 11:06:14 +11:00
Niels Andriesse 54e902c848 Fix various warnings 2021-01-28 15:40:45 +11:00
Niels Andriesse ff09ee3e79 Delete unused files 2021-01-25 13:31:38 +11:00
Niels Andriesse 2a4977d269 Implement Session protocol 2020-12-14 09:49:02 +11:00
Niels Andriesse 75f7a7973b Debug PN extension 2020-12-03 17:26:29 +11:00
Niels Andriesse 76f92000b9 Add missing pod 2020-12-03 17:09:47 +11:00
Niels Andriesse 2be42e892a Prune unused notification service extension pods 2020-12-03 15:23:41 +11:00
Niels Andriesse d33fcb0756 Re-install pods 2020-11-30 13:01:43 +11:00
Niels Andriesse 02454b6cc9 Point to forked YapDatabase repo 2020-11-30 12:11:06 +11:00
Niels Andriesse ac6baec6f2 Make things compile again 2020-11-26 10:37:56 +11:00
nielsandriesse 5dfd4b1965 Restructure 2020-11-25 16:15:16 +11:00
nielsandriesse b218a16b05 Implement attachment downloading 2020-11-20 15:53:56 +11:00
nielsandriesse 877751445d Clean 2020-11-13 10:22:50 +11:00
nielsandriesse e819d8f536 Update dependencies 2020-11-12 13:20:28 +11:00
nielsandriesse 1c0b32af3c Fix ECKeyPair usage 2020-11-12 10:41:45 +11:00
nielsandriesse 000e907d47 Clean up Podfile 2020-11-12 07:55:24 +11:00
nielsandriesse 7e213c71d5 Make everything build again 2020-11-11 17:45:50 +11:00
nielsandriesse ffa64e4747 Merge SignalMessaging into SignalUtilitiesKit 2020-11-11 16:30:54 +11:00
nielsandriesse ae635dbd36 Make SignalMessaging work with SignalUtilitiesKit 2020-11-11 11:50:01 +11:00
nielsandriesse c475f895e8 Create SignalUtilitiesKit 2020-11-11 10:58:56 +11:00
nielsandriesse 362e2e9c03 Update SessionMessagingKit for open groups 2020-11-09 11:53:07 +11:00
nielsandriesse a3382f41d4 Re-organize files 2020-11-09 10:58:47 +11:00
nielsandriesse 21fe9558a4 Partially implement messaging kit encryption & decryption 2020-11-06 19:32:09 +11:00
nielsandriesse 2d618cc6e9 Re-add proof of work 2020-11-06 13:56:26 +11:00
nielsandriesse 10582e0381 Add SSKs to SessionProtocolKit 2020-11-05 17:04:39 +11:00
nielsandriesse dcb218c864 Create SessionProtocolKit framework 2020-11-05 16:10:49 +11:00
nielsandriesse 96bfab5d93 Re-generate protos 2020-11-05 14:56:15 +11:00