Commit Graph

328 Commits (eb927c36a947fc84f3e6a1637b2b68a7aedd0db0)

Author SHA1 Message Date
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
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 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'
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 cd61fb8df0 Merge branch 'dev' into feature/message-requests
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	SignalUtilitiesKit/Utilities/UIColor+Extensions.swift
2 years ago
Ryan Zhao e543f86c8b Merge branch 'dev' of https://github.com/oxen-io/session-ios into 1.11.21 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
Morgan Pretty c7e7d30dea Merge branch 'dev' into fix/safari-sharing 2 years ago
Ryan Zhao ce83de5c46 fix crash of dictionary.subscript.getter for closed groups 2 years ago
Ryan Zhao a101bfbf82 Merge branch 'dev' of https://github.com/oxen-io/session-ios into 1.11.21 2 years ago
RyanZhao 6aac2a9966
Merge pull request #550 from mpretty-cyro/fix/open-group-initial-mention-list
Fix open group initial mention list population
2 years ago
Ryan Zhao 8ed77435d8 update translation 2 years ago
Morgan Pretty 2fedba4cea Addressed PR changes
Added NVActivityIndicatorView to the SessionShareExtension.
Removed the SignalAttachmentType.
3 years ago
Morgan Pretty af6d4a1dc0 Fixed the initial open group mention list 3 years ago
Morgan Pretty 0629d086c5 Updated the link previews to default to HTTPS 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 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
Ryan Zhao 5e9695d234 disable typing indicators and read receipts by default 3 years ago
ryanzhao e24ae60d71 fix duplicated disappearing message in closed groups 3 years ago
Ryan Zhao a6df6504c8 Prevent the same ExpirationTimerUpdate to be handled twice 3 years ago
Ryan Zhao 5a5741f47b Group notifications from background polling 3 years ago
ryanzhao e49431d2eb fix transaction crash 3 years ago
ryanzhao dbcc158337 fix unsend bugs 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 0b5d6ae4b0 fix disappearing messages for sync messages 3 years ago
ryanzhao 3a84593de9 fix profile key crash & typo 3 years ago
ryanzhao bfc1e96c9d Merge branch 'sync-read' into bug-fixes 3 years ago
ryanzhao d4067eb39d mark previous messages as read if there is a sync message 3 years ago
ryanzhao 50465c04bf fix a crash where the configuration message contacts info may contain invalid profile key 3 years ago
ryanzhao fde5083de8 improve link preview images 3 years ago
ryanzhao 140676fdaf fix expiration sync messages show display name rather than "You" 3 years ago
ryanzhao f08d0470e5 expire sync messages if needed 3 years ago
RyanZhao fbd30ca8e5
Merge pull request #500 from RyanRory/improvements
Improvements
3 years ago
ryanzhao 454003c027 Revert "WIP: make the attachment download work in NSE"
This reverts commit 7295c14e17.
3 years ago
ryanzhao 7295c14e17 WIP: make the attachment download work in NSE 3 years ago
ryanzhao d6d041a74f fix closed group threading issue 3 years ago
ryanzhao da335a8401 clean 3 years ago
ryanzhao 132ff0416f set server timestamp as open group message's sent timestamp 3 years ago
ryanzhao 7a354fe220 potentially fix the closed group not receiving messages issue 3 years ago
ryanzhao 1822c7df16 fix duplicated messages sent in closed groups 3 years ago
Niels Andriesse 45042a1acf Fix typos 3 years ago
ryanzhao 2e8e931551 minor refactor 3 years ago
ryanzhao 940e09c25b handle canceling push notification 3 years ago
Ryan Zhao 7e640fb6ac Don't show deleted message in home screen 3 years ago
Ryan Zhao 6e45aed71b Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 3 years ago
Ryan Zhao eaab6ee22d deleted message UI in conversation screen 3 years ago
Niels Andriesse e311d2878f Fix message status indicator bug 3 years ago
Niels Andriesse 50d17be43b Fix animation glitch 3 years ago