Commit Graph

37 Commits (949b043867702c5bf471afeeb7552a25c0e401fb)

Author SHA1 Message Date
Morgan Pretty 1c575e520d Merge remote-tracking branch 'upstream/voice-calls-2' into feature/session-id-blinding-part-2
# Conflicts:
#	Podfile.lock
#	Session.xcodeproj/project.pbxproj
#	Session/Conversations/ConversationVC+Interaction.swift
#	Session/Conversations/Views & Modals/JoinOpenGroupModal.swift
#	Session/Home/HomeVC.swift
#	Session/Open Groups/JoinOpenGroupVC.swift
#	Session/Utilities/BackgroundPoller.swift
#	SessionMessagingKit/Jobs/AttachmentUploadJob.swift
#	SessionMessagingKit/Open Groups/OpenGroupAPIV2.swift
#	SessionMessagingKit/Sending & Receiving/MessageReceiver+Handling.swift
#	SessionNotificationServiceExtension/NotificationServiceExtension.swift
2 years ago
Ryan Zhao 43ca54c0a0 refactor to use Atomic wrapper 2 years ago
Morgan Pretty 81f563229f Renamed FileServerAPIV2 to FileServerAPI
Updated the direct file upload/download to use the non-base64 approaches as well
Updated the attachment 'serverId' value to be a string instead of a UInt64 (future-proofing)
Updated the OnionRequest V4 response handling to avoid converting the "response body" part to a string and processing that, instead just slice the byte array (ie. stopped it from being broken from multiple conversions)
Removed the base64-based file upload/download endpoints (no use including them when they are inefficient and we don't want to use them)
2 years ago
Morgan Pretty 1c474955de File upload working, further code cleanup
Got the updated file upload working
Removed the legacy 'room' header
Consolidated a number of types between SOGS, FileServer and general requests
Updated the OnionRequestAPI to deal with a Data payload (rather than encoding it to a string and then back to data)
2 years ago
Morgan Pretty dbead5e3c8 Got the '/inbox' APIs and encryption/decryption/validation working
Added a few types to make the code more readable
Added the inbox request to the polling
Added a couple of properties to the TSContactThread to indicate the originating open group to support SOGS DMs
Added code to store the latest message id for an open group inbox
Added a bunch of documentation from the API docs into the OpenGroupAPI (and associated models)
Updated the OpenGroupAPI to match the latest docs
Fixed the incorrect structure of the SendDirectMessageRequest
Fixed an incorrect inbox endpoint path
Tweaked the batch response handling so it wouldn't fail to parse all responses if a single one failed
Renamed IdPrefix to SessionId.Prefix and cleaned up the type to be more readable & self-documenting
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
Niels Andriesse e84fc1aa04 Include destination info in error messages 3 years ago
Niels Andriesse e796f6bacd Don't retry message send jobs when rate limited 3 years ago
nielsandriesse 86c2c39425 Fix background polling crash 3 years ago
nielsandriesse e24fca7b37 Fix job duplication bug
This could cause attachments not to download on the receiving side, and potentially also cause duplicate push notifications to be sent
3 years ago
nielsandriesse 09b4b7d388 Update MessageSender for V2 open groups 3 years ago
Niels Andriesse 73bbaf9ce7 Potentially fix attachment issue 3 years ago
Niels Andriesse efe8f1c8bb Clean 4 years ago
nielsandriesse d6c115bc2a Fix module linking issue 4 years ago
Niels Andriesse d01e732515 Debug open group messaging 4 years ago
Niels Andriesse 1ca3366518 Fix MessageSendJob deserialization 4 years ago
nielsandriesse addc859c84 Fix duplicate messages & debug 4 years ago
nielsandriesse d01f43147a Debug 4 years ago
nielsandriesse c59fe05f8e Cancel message send job(s) if associated message/thread is deleted 4 years ago
nielsandriesse 77c1f721b9 Further debug attachment sending 4 years ago
Niels Andriesse a88ce33ee0 WIP 4 years ago
nielsandriesse 178ab7e3e2 WIP 4 years ago
nielsandriesse 921e2bced6 Debug 4 years ago
nielsandriesse 4317b17e7e Fill in some gaps 4 years ago
Niels Andriesse 64cf19f461 Improve job error handling 4 years ago
Niels Andriesse d2e8f2142e WIP 4 years ago
nielsandriesse 7e9eb2f138 Make typing indicators work & implement job resuming 4 years ago
Niels Andriesse b030b5999b Make messages show up again 4 years ago
nielsandriesse 15c6784f0f WIP 4 years ago
nielsandriesse 82127bfe4d Clean 4 years ago
nielsandriesse a3382f41d4 Re-organize files 4 years ago
nielsandriesse b9f2881c9d Implement destination coding 4 years ago
nielsandriesse 71d51a873a Further implement JobQueue 4 years ago
nielsandriesse ae81bfb610 Clean 4 years ago
nielsandriesse d80804ca5a Create JobQueue 4 years ago
nielsandriesse 28172b4ed2 Create AttachmentUploadJob & AttachmentDownloadJob
Also conform SnodeMessage to NSCoding
4 years ago
nielsandriesse 4b63588f1a Create MessageSendJob & MessageReceiveJob
Also implement message sending notifications & custom TTL for typing indicators
4 years ago