Commit Graph

351 Commits (c3b855646f6e6979ecb670fe24b9643822bb61e0)

Author SHA1 Message Date
Morgan Pretty 47314bd639 Added a notification to indicate the user has a new message request
Fixed a bug where the notification count could be increased for message requests
Fixed a bug where an approved contact could be 'unapproved' due to an order of execution issue when generating the config sync message
Fixed a check to avoid registering for push notifications when on the simulator (old check didn't cater for M1 Macs)
Moved the 'hasHiddenMessageRequests' into the group user defaults so it can be accessed within the notification extension
Added code to handle an edge case where an old client could incorrectly un-approve a contact via a legacy configuration message
3 years ago
Morgan Pretty 1edd500dab Updated to the latest blinding behaviour
Added a couple more dependencies for unit testing injection
Updated the MessageSender to set the sender of the message to the appropriate blinded/unblinded key
Updated the OpenGroup Message to handle verification of both blinded and unblinded messages
Updated the MessageSender to use dependency injection for it's sendToOpenGroupDestination method
Updated the JSONDecoder to support getting dependencies (for signature verification)
Fixed tests broken by updating the signing logic
3 years ago
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
3 years ago
Ryan Zhao a8fd6d9d18 fix home screen not reloading when coming into foreground 3 years ago
Ryan Zhao cc1b1e8c51 poll for open groups in NSE 3 years ago
Morgan Pretty b655882cbd Started resolving TODOs
Added some new properties to the OpenGroupV2
Moved a number of methods and variables from OpenGroupAPI to OpenGroupManager (anything doing actual logic)
Moved the message signing into the OpenGroupAPI (since that's the only place it happens)
Renamed remaining old model classes to start with 'Legacy' to make clean up easier
Updated the OpenGroupAPI poll method to use the same logic as it previously did to determine if it should retrieve recent messages or messages since the last one
3 years ago
Morgan Pretty 8cc9caa0fd Renamed the OpenGroupPollerV2 and OpenGroupManagerV2 3 years ago
Morgan Pretty 63e6cdd9ec Renamed OpenGroupAPIV2 to OpenGroupAPI
Added the inbox endpoints
3 years ago
Morgan Pretty 4963a84ddd Added more unit tests for the OpenGroupAPI (fixed a couple bugs as well) 3 years ago
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
3 years ago
Morgan Pretty 051f03f4b4 PR comments and a few missed use cases
Disabled the attachments and voice message buttons for the first message
Disabled the Disappearing Messages flag for the until the conversation is approved
Fixed a bug where the recipient of a message request could incorrectly get the 'pending approval' state
Refactored some standard auto layout code to use the custom extension code
3 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
3 years ago
Morgan Pretty 4f3900771e More work on getting SOGS V4 integrated
Updated the MessageSendJob to support V4 messages (V2 messages will be upgraded to V4 if they get re-encoded)
Renamed the Message+Destination from 'openGroup' & 'openGroupV2' to 'legacyOpenGroup' and 'openGroup'
Started plugging in more of the V4 APIs
Renamed a number of the V2 APIs to start with 'legacy'
3 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
3 years ago
Morgan Pretty 394b0646a3 Updated the code to support additional session id prefixes 3 years ago
Morgan Pretty cd61fb8df0 Merge branch 'dev' into feature/message-requests
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	SignalUtilitiesKit/Utilities/UIColor+Extensions.swift
3 years ago
Ryan Zhao 69e464e8ae bump up version & build number 3 years ago
Morgan Pretty 4d62ddbd77 Merge branch 'dev' into fix/safari-sharing
# Conflicts:
#	Podfile.lock
3 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)
3 years ago
Ryan Zhao 18fea4ab73 Merge branch 'dev' into global-search 3 years ago
Morgan Pretty 09d63456b6 Merge branch 'dev' into fix/safari-sharing
# Conflicts:
#	Podfile
#	Podfile.lock
#	Session.xcodeproj/project.pbxproj
3 years ago
Ryan Zhao 85c4b3d745 show recent search result as default for global search screen 3 years ago
Ryan Zhao 68ec1654e8 rebuild global search UI 3 years ago
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.
3 years ago
ryanzhao fed1218538 WIP: global search UI 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 4f3faa28bc Refactored SessionShareExtension code to Swift 3 years ago
Ryan Zhao 7a22c9d329 update build number 3 years ago
Ryan Zhao 19cb916fa1 update version & build number 3 years ago
Ryan Zhao d754311395 update version & build number 3 years ago
ryanzhao 365231f309 update build number 4 years ago
ryanzhao e529e68cb2 update build number 4 years ago
ryanzhao a31700865a update build number 4 years ago
ryanzhao ecf92ceeea fix PN sound settings not applying to remote PNs 4 years ago
ryanzhao e51bd3b819 update version number 4 years ago
ryanzhao 0eba1eb14f update build number 4 years ago
ryanzhao 36f3f83298 update build number 4 years ago
ryanzhao c85b9020b9 update version number 4 years ago
ryanzhao 7aa751ca45 share log files in settings vc 4 years ago
ryanzhao 5ccb84bcf0 update build number 4 years ago
ryanzhao 7e89c28038 update build number 4 years ago
ryanzhao bfe24ee7bb update version number 4 years ago
ryanzhao e049d05891 update translations 4 years ago
ryanzhao d60bbdb315 update build number 4 years ago
ryanzhao a25ef77f9a update version number 4 years ago
Niels Andriesse d6f1553050 Update build number 4 years ago
Niels Andriesse fff117e633 Update build number 4 years ago
Niels Andriesse cb2fb4497d Update version number 4 years ago
Niels Andriesse e226b9a273 Fix copyright notice 4 years ago
Niels Andriesse 9e70432ec9 Update project settings 4 years ago
Niels Andriesse 72469f78f1 Fix organization name 4 years ago
ryanzhao 03fde557fc Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 4 years ago
Niels Andriesse 530bb7983a Update version number 4 years ago
Ryan Zhao 6e45aed71b Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 4 years ago
Ryan Zhao eaab6ee22d deleted message UI in conversation screen 4 years ago
Ryan Zhao ab492d5304 Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 4 years ago
Niels Andriesse 29acca574c Update build number 4 years ago
Niels Andriesse d76d04d0f5 Merge branch 'dev' into conversation-ui 4 years ago
Niels Andriesse 1dc463a9ed Update build number 4 years ago
ryanzhao dd2f8c7df9 Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 4 years ago
Niels Andriesse 7043e83ea3 Merge branch 'dev' into conversation-ui 4 years ago
Niels Andriesse c132b16d01 Update build number 4 years ago
Niels Andriesse 7f0b87a2b2 Avoid unnecessary conversation screen updates 4 years ago
Ryan Zhao 885e9296d1 Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 4 years ago
Niels Andriesse 9b525f77b6 Update build number 4 years ago
Niels Andriesse 6851531014 Update build number 4 years ago
Ryan Zhao d9dde64e5f Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 4 years ago
Ryan Zhao dff99cf0fc add unsend request proto 4 years ago
Niels Andriesse 1543dc7b1f Update build number 4 years ago
Niels Andriesse ec4ce64887 Update build number 4 years ago
Niels Andriesse c4fafa132d Update build number 4 years ago
Niels Andriesse 2bffc3b830 Update build number 4 years ago
Niels Andriesse 02a318a1e3 Update build number 4 years ago
Niels Andriesse c90009d5fd Update version number 4 years ago
Niels Andriesse 81287f2b97 Update build number 4 years ago
Niels Andriesse ab42433a96 Update build number 4 years ago
Niels Andriesse ac730e00b4 Update build number 4 years ago
Niels Andriesse 8a1070cc8e Update build number 4 years ago
Niels Andriesse 44288c45e9 Fix auto scroll to bottom bug 4 years ago
Niels Andriesse 8183e8ea80 Update version number 4 years ago
Niels Andriesse 6d2044f230 Warn users if they're about to send their recovery phrase to someone 4 years ago
Niels Andriesse 5fca1de866 Update the build number again
App Store processing is stuck
4 years ago
Niels Andriesse 614626bffb Update build number 4 years ago
Niels Andriesse d2161545d6 WIP 4 years ago
Niels Andriesse 595080aba2 Update build number 4 years ago
Niels Andriesse 769dccb902 Update version number 4 years ago
Niels Andriesse dfdffc607c Make profile pictures tappable 4 years ago
Niels Andriesse a5beb8af06 Update build number 4 years ago
Niels Andriesse 06a3eaad2d Update build number 4 years ago
Niels Andriesse 5003a78a6f Update version number 4 years ago
Niels Andriesse 13e255892f Update build number 4 years ago
Niels Andriesse 08a3f3b476 Update version number 4 years ago
Niels Andriesse 8a7d3f5d6a Update build number 4 years ago
Niels Andriesse b5999f2fc7 Update version number 4 years ago
Niels Andriesse e296f0f814 Update build number 4 years ago
Niels Andriesse 937ad15050 Update version number 4 years ago
Niels Andriesse 57ebadcbdb Update translations 4 years ago
nielsandriesse 90f6b6f5b9 Update build number 4 years ago
nielsandriesse 56c2482b8e Update build number 4 years ago
nielsandriesse ae4e781055 Update build number 4 years ago