Commit Graph

192 Commits (f5e48cec0139deb18c3f66f6da8588215abed52f)

Author SHA1 Message Date
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
2 years ago
Morgan Pretty 63e6cdd9ec Renamed OpenGroupAPIV2 to OpenGroupAPI
Added the inbox endpoints
2 years ago
Morgan Pretty c90f346d6a Further SOGS V4 integration work
Added in the v4 onion requests logic
Added in the new pin/unpin APIs
Split up additional legacy methods to try and simplify the refactoring
Added a number of TODOs around usage of legacy request methods
2 years ago
Morgan Pretty 2284375fc0 Started work on updated SOGS support
Split the OpenGroupAPIV2 into separate files
Started working on the new auth and blinded-id approaches (new auth working with un-blinded id suggesting blinded-id code is incorrect)
Updated the SOGS request/response types to use Codable
Updated the SOGS Request type to use enums instead of strings for keys (to reduce likelihood of typos breaking things)
Updated SessionMessagingKit to use Codable and JSONEncoder/JSONDecoder instead of the legacy JSONSerialization
Cleaned up some naming conventions in the SessionMessagingKit (calling a URLRequest body 'parameters' is very confusing...)
Removed the custom TSRequest class (just using standard URLRequest everywhere instead)
Added a number of extension functions to enable some more functional-coding styles
Added extensions to Sodium methods to allow scalar multiplication and the ability to hash providing a salt and a personalisation value (both needed for new SOGS auth)
Fixed an issue where the legacy auth for SOGS could crash due to threading issues (multiple threads accessing the same variable)
Fixed an issue where if you were in two rooms in a single SOGS and deleted one of them, the other room would stop getting updates as the server public key was getting removed
2 years ago
Morgan Pretty 394b0646a3 Updated the code to support additional session id prefixes 2 years ago
Morgan Pretty 27d9e41eaf Fixed a couple of build errors due to merging dev 2 years ago
Morgan Pretty cd61fb8df0 Merge branch 'dev' into feature/message-requests
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	SignalUtilitiesKit/Utilities/UIColor+Extensions.swift
2 years ago
Morgan Pretty 4d62ddbd77 Merge branch 'dev' into fix/safari-sharing
# Conflicts:
#	Podfile.lock
2 years ago
Morgan Pretty 9db5083cc5 Built out the Message Request functionality
Added the MessageRequestsViewController
Added a 'Message Requests' button to the settings screen
Added accept/reject buttons for message requests to the ConversationVC
Added the ability to hide the message request item on the HomeVC (re-appears if you get a new message request)
Added code to handle an edge-case where the message request approval state wouldn't be returned to the sender due to the recipient running an old version of the app
Prevented contacts which aren't associated with an approved thread from appearing when creating a closed group
Disabled notifications for threads which aren't approved
Updated the app notification count to exclude unapproved messages
Updated the app to ignore closed group creation messages if the group has no admins which are approved contacts
Fixed up the keyboard avoidance behaviour in the ConversationVC
Fixed a couple of minor interaction issues which affected some devices
Fixed an issue where the database migrations would run on the 2nd launch when creating a new account (causing odd behaviours)
2 years ago
Ryan Zhao 16f6d49cec add note to self to the default global search screen with empty search text 2 years ago
Morgan Pretty 09d63456b6 Merge branch 'dev' into fix/safari-sharing
# Conflicts:
#	Podfile
#	Podfile.lock
#	Session.xcodeproj/project.pbxproj
2 years ago
Ryan Zhao c1c5678056 implement animation for selected search result message flickering 2 years ago
Ryan Zhao 3a626ed80a fix a deadlock issue 3 years ago
ryanzhao fed1218538 WIP: global search UI 3 years ago
Morgan Pretty 2fedba4cea Addressed PR changes
Added NVActivityIndicatorView to the SessionShareExtension.
Removed the SignalAttachmentType.
3 years ago
Morgan Pretty 3b07be4eed Fixed a couple of crashes
Fixed an issue where sharing form Safari without adding comments would result in an invalid message getting sent.
Fixed a crash when sharing plain text from safari.
Fixed a crash when localising 'OK' (key and value can't be the same when using the new extension).
3 years ago
Morgan Pretty f02f53fc49 Added code to show a HTTP LinkPreview error
Added code to indicate the app won't load LinkPreviews for HTTP urls.
Updated the title & subtitle layout to better handle LinkPreview errors.
Missed an Objective C change in the last commit.
3 years ago
Morgan Pretty 2018e94df8 Updated audio attachments to allow scrubbing. 3 years ago
Morgan Pretty e6c90c5e18 Finished off UI clean up
Fixed a couple more vertical alignment issues with certain attachment types.
Finished cleaning up the MediaMessageView UI code (removed old code).
3 years ago
Morgan Pretty 67ad965859 Link Preview error state and UI standardisation
Added a couple of error states for Link Preview loading.
Standardised the UI creation code style.
Removed some debug and redundant code.
3 years ago
Morgan Pretty 61f809caee Fixed a couple of bugs and started UI refactoring
Refactored the UI creation and layout code in the attachments UI.
Started refactoring the UI in the MediaMessageView (converting the existing stuff and will then consolidate when done).
Fixed a bug where playing a video attachment would result in the zoom continually getting reset.
Fixed a bug where the attachment zoom scale would randomly change causing odd behaviours.
3 years ago
Morgan Pretty dd9eeb5d61 Added initial support for sharing URLs and text
Updated the share extension to load URL previews.
Updated the ThreadPickerVC to send plain text & URLs in the same way they are sent for normal messages.
3 years ago
Morgan Pretty 3c32ed7cc1 Merge branch 'fix/m1-build-issues' into fix/safari-sharing
# Conflicts:
#	Podfile.lock
3 years ago
Morgan Pretty ab9f2a0c7b Minor formatting and code cleanup of attachments 3 years ago
Morgan Pretty 4f3faa28bc Refactored SessionShareExtension code to Swift 3 years ago
ryanzhao cef39f4ba3 make image rotation consistent with icon 3 years ago
RyanZhao 1558309805
Merge pull request #536 from RyanRory/copy-paste-image
Copy / paste images directly
3 years ago
Ryan Zhao d74af622bc fix photos from original camera is rotated in the preview page 3 years ago
Ryan Zhao 6225c12ced minor improvement on pre-sending file page icon 3 years ago
Ryan Zhao 300f6f50cf add size label for file type attachment 3 years ago
RyanZhao 2a26eda36b
Merge pull request #531 from RyanRory/1.11.19
1.11.19 bug fixes and improvements
3 years ago
Ryan Zhao 4f1093beca improve translation and notificaiton displaying 3 years ago
Ryan Zhao 1cc2f17469 pin conversations 3 years ago
Ryan Zhao 2cb006c3e4 Fix image orientation 3 years ago
ryanzhao b315510ec2 Revert "improve attachment image quality"
This reverts commit ad4e65e6e1.
3 years ago
ryanzhao ad4e65e6e1 improve attachment image quality 3 years ago
ryanzhao 1899a3fe3d fix sharing not work for session 3 years ago
ryanzhao 42d4e07724 add @ symbol when there is mention in unread messages 3 years ago
Ryan Zhao 885e9296d1 Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 3 years ago
Niels Andriesse dff9f287b8 Resolve FIXME 3 years ago
Ryan Zhao e2a0578770 cancel local notifications for unsend requests 3 years ago
Niels Andriesse 556e13cc72 Fix crash 3 years ago
Ryan Zhao 38a19ad2d1 don't add badge for messages with no mention 3 years ago
Niels Andriesse 483ed4792f Fix localization & clean 3 years ago
ryanzhao f0d2826403 add thread flag for only notifying mentiongs 3 years ago
Niels Andriesse ca862096b4 Rename profilePictureEncryptionKey → profileEncryptionKey 3 years ago
Niels Andriesse 519ffa4405 Fully switch to the new contact API
This should improve performance significantly as it avoids many unnecessary sync transactions. It also makes the code more readable.
3 years ago
Niels Andriesse d2161545d6 WIP 3 years ago
Brice-W 2f0fe36905 add expiration timer to configuration message 3 years ago
Niels Andriesse 3fda8daec9 Merge branch 'dev' into cleanup 3 years ago