Commit Graph

1742 Commits (79b98994fef18d7fcc24f99b86b060fcc19267e1)

Author SHA1 Message Date
Morgan Pretty ecd066f7a1 Merge remote-tracking branch 'upstream/dev' into strings
# Conflicts:
#	Session/Media Viewing & Editing/PhotoCaptureViewController.swift
#	Session/Notifications/AppNotifications.swift
#	Session/Settings/SettingsViewModel.swift
#	Session/Utilities/Permissions.swift
#	SessionMessagingKit/Messages/Control Messages/CallMessage.swift
#	SessionMessagingKit/Sending & Receiving/Message Handling/MessageSender+ClosedGroups.swift
#	SessionShareExtension/ThreadPickerVC.swift
1 year ago
Morgan Pretty 7f5c544e06 Fixed a message request notification issue
• Fixed an issue where the message request notification may not show correctly
• Minor code tweaks for linting
1 year ago
Ryan ZHAO ca8344db06 fix attachment short description 1 year ago
Morgan Pretty a7e73080fa Minor logging tweaks 1 year ago
Morgan Pretty d8294aac0d Fixed logging issue and other minor tweaks
• Fixed a bug where the libSession logs wouldn't all come through correctly
• Added logic to handle response headers from libSession
• Minor optimisation to closed groups poller setup
• Minor logging tweaks
1 year ago
Ryan ZHAO ae3fde1e1c Merge branch 'dev' into strings 1 year ago
Morgan Pretty bce7a093cf Merge remote-tracking branch 'upstream/dev' into fix/crashes-and-improvements
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Calls/Call Management/SessionCallManager.swift
#	Session/Meta/AppDelegate.swift
#	Session/Notifications/PushRegistrationManager.swift
#	SessionNotificationServiceExtension/NotificationServiceExtension.swift
#	SessionShareExtension/ThreadPickerVC.swift
#	SessionUtilitiesKit/Database/Storage.swift
1 year ago
Morgan Pretty a02bc55445 Fixed an endless loading state when clearing data with no network 1 year ago
Morgan Pretty dfe690cc1a
Merge pull request #1010 from mpretty-cyro/fix/attachment-dictionary-crash-2
Reworked the SignalAttachmentItem hash function
1 year ago
Morgan Pretty 7e771467d6 Fixed an issue with push notifications in legacy groups
• Reworked the NotificationServiceExtension to just always reset and reload it's state to avoid weird bugs
• Updated the legacy group messages to fallback to using a locally generated serverHash if one isn't provided (always happens for legacy PNs)
• Include error info when failing to process extension logs
• Made a bunch of the Storage functions instance functions instead of static functions
1 year ago
Ryan ZHAO b0ab84a86d fix group control messages 1 year ago
Ryan ZHAO a98c213b78 fix disappearing messages strings 1 year ago
Morgan Pretty d38e620e8e Fixed a regression when updating config messages
Doing a config push was working via `Atomic.wrappedValue` instead of `Atomic.mutate` - we need to use `Atomic.mutate` in this case because we want to block other threads from modifying the config while we are doing a push (otherwise it can crash due to data changing while generating the push payload)
1 year ago
Morgan Pretty 1396652698 Refactored the DSL for interacting with C structs
There were a few logs related to bad memory access within libSession and the `toLibSession` convention which we'd originally setup made me nervous as C-friendly objects would be allocated in Swift and then assigned to C struct properties but I'm not sure how the memory would actually behave in this case.

This updated approach unfortunately involves a bunch of duplicate code within 'TypeConversion+Utilities' (and some horrible type aliases for tuples) but as a result we now have compile-time safe 'get' and 'set' functions for any C struct which conforms to `CAccessible` and `CMutable`. The other nice benefit about this change is that the new `set` functions copy memory across into the C structs so we can have more confidence that the memory ownership has shifted to the libSession side of things.
1 year ago
Ryan ZHAO ea48f1b40d fix strings 1 year ago
Morgan Pretty 597f94a954 Fixed an issue where you could answer calls without having the mic permission 1 year ago
Morgan Pretty e1aedb36da Fixed a few bugs found when testing strings
• Fixed an issue where creating a legacy group could be blocked by the legacy PN subscription failing (was part of the synchronous request)
• Fixed an issue where the code would incorrectly use profile data from incoming messages sent from the current user to update it's profile info
• Fixed an issue where saving media would fail silently if the user had rejected the OS permission
• Refactored a little code around profile changes to make things more readable
1 year ago
Morgan Pretty 9eca118d85 Correctly show the 'uploading' state, removed unused function 1 year ago
Ryan ZHAO 70f8d45a39 fix a bunch of strings 1 year ago
Ryan ZHAO fcc5a36883 update disappearing messages type localized name logic 1 year ago
Ryan ZHAO 5d03a8057e clean 1 year ago
Ryan ZHAO ca5c979f8f Merge branch 'dev' into standardised-strings 1 year ago
Morgan Pretty 67830ed767 Fixed a legacy group message decryption issue
Fixed a bug where we were incorrectly generating and requiring 64 byte secrets for legacy groups (we only need 32 bytes), since we do length checks before calling the libSession C API (to prevent crashes) we would fail before attempting to decrypt because the key was too short
1 year ago
Morgan Pretty 375f66f45a Reworked to just use a unique id rather than hacky hash overrides 1 year ago
Ryan ZHAO 771b21a96d Merge branch 'dev' into standardised-strings 1 year ago
Morgan Pretty 027ce1604d Fixed a few issues found during QA
• Fixed an issue where incoming legacy group messages were failing to decrypt
• Fixed an issue where decoding push notifications could result in an infinite loop
• Fixed an issue where the extensions would incorrectly try to append extension logs (only want the main app to do this)
• Updated the accessibility ids for the switches and radios on the privacy and disappearing message settings screens
1 year ago
Ryan ZHAO 6d27ef0dfa fix an issue there attachment error modal won't show up 1 year ago
Morgan Pretty 5da842a109 Fixed an issue where joinedAt wasn't getting set for legacy groups 1 year ago
Morgan Pretty 2bcd8e28ab Merge remote-tracking branch 'upstream/dev' into standardised-strings
# Conflicts:
#	Scripts/LintLocalizableStrings.swift
#	Session.xcodeproj/project.pbxproj
#	Session/Closed Groups/EditClosedGroupVC.swift
#	Session/Conversations/ConversationVC+Interaction.swift
#	Session/Conversations/Message Cells/Content Views/QuoteView.swift
#	Session/Conversations/Settings/ThreadDisappearingMessagesSettingsViewModel.swift
#	Session/Conversations/Settings/ThreadSettingsViewModel.swift
#	Session/Conversations/Views & Modals/ConversationTitleView.swift
#	Session/Home/GlobalSearch/GlobalSearchViewController.swift
#	Session/Media Viewing & Editing/GIFs/GifPickerViewController.swift
#	Session/Media Viewing & Editing/PhotoCaptureViewController.swift
#	Session/Media Viewing & Editing/PhotoLibrary.swift
#	Session/Notifications/UserNotificationsAdaptee.swift
#	Session/Open Groups/JoinOpenGroupVC.swift
#	Session/Settings/NukeDataModal.swift
#	Session/Shared/ScanQRCodeWrapperVC.swift
#	SessionMessagingKit/Database/Models/Attachment.swift
#	SessionMessagingKit/Database/Models/DisappearingMessageConfiguration.swift
#	SessionMessagingKit/Database/Models/RecipientState.swift
#	SessionMessagingKit/Sending & Receiving/Attachments/SignalAttachment.swift
#	SessionShareExtension/ShareNavController.swift
#	SessionShareExtension/ThreadPickerVC.swift
#	SessionUIKit/Components/TopBannerController.swift
#	SessionUtilitiesKit/General/String+Utilities.swift
#	SessionUtilitiesKit/Networking/IPv4.swift
#	SignalUtilitiesKit/Media Viewing & Editing/Attachment Approval/AttachmentApprovalInputAccessoryView.swift
#	SignalUtilitiesKit/Media Viewing & Editing/Attachment Approval/AttachmentApprovalViewController.swift
#	SignalUtilitiesKit/Media Viewing & Editing/Attachment Approval/AttachmentCaptionToolbar.swift
#	SignalUtilitiesKit/Screen Lock/ScreenLock.swift
1 year ago
Morgan Pretty 07cbbbbd94 Fixed compile issue and bumped version number 1 year ago
Morgan Pretty 2032dafc74 Merge remote-tracking branch 'upstream/dev' into feature/swift-package-manager
# Conflicts:
#	SessionMessagingKit/Sending & Receiving/Message Handling/MessageReceiver+ExpirationTimers.swift
#	SessionMessagingKit/Sending & Receiving/MessageReceiver.swift
#	SessionSnodeKit/Networking/SnodeAPI.swift
#	SessionUtilitiesKit/Media/DataSource.h
#	SessionUtilitiesKit/Media/DataSource.m
1 year ago
Morgan Pretty 2b9412164d
Merge pull request #1002 from mpretty-cyro/fix/no-version-check-when-testing
Added code to defer the CheckForAppUpdatesJob when running tests or sim
1 year ago
Morgan Pretty 432238debe
Merge pull request #970 from RyanRory/disappearing-messages-v2-post-enabling
Cleaning up legacy disappearing messages
1 year ago
Morgan Pretty af463d874e Merge remote-tracking branch 'upstream/dev' into fix/minor-deadlock-improvements
# Conflicts:
#	SessionMessagingKit/Sending & Receiving/Pollers/OpenGroupPoller.swift
1 year ago
Morgan Pretty 009c017ca2
Merge pull request #995 from RyanRory/observing-sogs-permission-change
Show message input box when permission changed in a convo
1 year ago
Morgan Pretty 31ae994941 Added Keychain migration code just in case (really shouldn't be needed) 1 year ago
Ryan ZHAO 5ee048330b plurals and fix some strings 1 year ago
Morgan Pretty b451d1ac04 Added code to defer the CheckForAppUpdatesJob when running tests or sim 1 year ago
Morgan Pretty bef27ee0c7 Fixed build issues resulting from rebase after Onboarding 1 year ago
Morgan Pretty e773550d0a Fixed issues with sending sync messages and uploading attachments 1 year ago
Morgan Pretty ed34ebcae9 Fixed the share extension and moved the WebRTC logic
Moved the WebRTC dependency out of SessionMessagingKit and into the main Session app (it's the only one that used it and it was causing library linker issues in the share extension because it wasn't directly linked)
1 year ago
Morgan Pretty b5a61704e3 Fixed a few c conversions which could crash if they failed 1 year ago
Morgan Pretty c69f3cd71a Resolved a TODO I had missed 1 year ago
Morgan Pretty 25c1fb6b45 Fixed the unit tests 1 year ago
Morgan Pretty ce01f128f3 Replaced Cocoapods with Swift Package Manager for dependency management 1 year ago
Morgan Pretty 450613de17 A few more changes resulting from the merge 1 year ago
Morgan Pretty da6c407e9f Minor tweaks 1 year ago
Ryan ZHAO b198699c4f refactor and clean up on Expiration Timer Update messages 1 year ago
Ryan ZHAO ad03d2a3ff WIP: refactor expiration update message 1 year ago
Ryan ZHAO d997122f8f WIP: clean up stage 2 1 year ago