Commit Graph

1280 Commits (9207418100481c85fdf578eeecaeccdda06c0e23)

Author SHA1 Message Date
Ryan ZHAO 753b93bb9e clean up 3 months ago
Ryan ZHAO 0b33e7a5fb fix potential infinite loop 3 months ago
Ryan ZHAO bce5eda5c2 fix an issue where iPhone 6s cuts off message request text 3 months ago
Ryan ZHAO 5681b96089 WIP: fix message request info layout 3 months ago
Ryan ZHAO dcaec4b2a8 fix an keyboard issue of Calls 3 months ago
Ryan ZHAO 1b40c1363a Merge branch 'dev' into fix-calls-issue-3 3 months ago
Morgan Pretty 37ea2a89bc Fixed a number of crashes currently affecting production
• Fixed a crash due to our ThreadSafe code using a struct instead of a class (rendering it non thread safe)
• Fixed a crash which could occur on the home screen if the data loaded before the UI finished loading
• (Hopefully) Fixed a crash which could occur when the OS optimised async execution to run immediately within an existing database transaction (potentially resulting in re-entrant database access)
• Fixed an issue where the database read/write publishers weren't checking for a valid database state before actual query execution (only during the creation of the stream)
3 months ago
Ryan ZHAO a16e3aa61a workaround for a permission issue in NotificationServiceExtension 3 months ago
Ryan ZHAO 47f9984d33 further refactor to use latest API 3 months ago
Ryan ZHAO 403ca8c10c refactor on getting microphone permission state to try to fix an issue 3 months ago
Morgan Pretty c6365e597d Merge branch 'dev' into fix/atomic-reentrancy 3 months ago
Ryan ZHAO c56e57663e add accessibility id for broken media 3 months ago
Morgan Pretty 15aaa8332d Fixed an issue where shared messages and community invites wouldn't disappear 4 months ago
Morgan Pretty 13fabbb305 Fixed an issue where sharing attachments could lose filename and extension 4 months ago
Morgan Pretty 1e07120eba Cleaned up 'calledFromConfig' params
• Renamed the remaining 'calledFromConfig' params to be a bit more descriptive of what they actually do
• Removed all the 'calledFromConfig' values

The `calledFromConfig` was previously needed to help prevent reentrant libSession access but that is now supported. This now means that a config change could trigger a database update which subsequently triggers a config change but libSession has a built in diff system which will prevent this resulting in an infinite update loop

If we do end up in a situation that this update loop results in a config change (which would then get synced) it's likely a bug in iOS which would be hard to track down as it would result from a specific database change (ie. this will hopefully make it easier to resolve inconsistent libSession integrations)
4 months ago
Morgan Pretty 08c7a2cf7f Refactored `Atomic<T>` to `@ThreadSafe` and `@ThreadSafeObject`
• Refactored `Atomic<T>` to `@ThreadSafe` and `@ThreadSafeObject` (the latter supports reentrancy
• Added some logging to the debug import process
4 months ago
Morgan Pretty f262b6d7a8 Merge remote-tracking branch 'upstream/dev' into fix/inconsistent-deletion-behaviours
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Calls/Call Management/SessionCallManager.swift
#	Session/Notifications/PushRegistrationManager.swift
#	SessionMessagingKit/Sending & Receiving/Message Handling/MessageReceiver+Calls.swift
#	SessionMessagingKit/Sending & Receiving/Message Handling/MessageReceiver+MessageRequests.swift
4 months ago
Morgan Pretty 1439b1b033
Merge pull request #327 from mpretty-cyro/fix/input-not-reappearing
Fixed some issues with message deletion and the input field
4 months ago
Morgan Pretty e6429ecafb
Merge pull request #325 from RyanRory/fix-keyboard
Fix keyboard not activating correctly in after following a link
4 months ago
Ryan ZHAO b37e6a03db fix a keyboard issue for calls 4 months ago
Ryan ZHAO 2faad168ef Potentially fix a keyboard issue for calls 4 months ago
Morgan Pretty 22e59b1789 Fixed a crash which could occur when receiving a UserGroups config change 4 months ago
Morgan Pretty 68284315a6 Fixed some issues with message deletion and the input field
• Fixed an issue where the input view wouldn't reappear when deleting messages for everyone in a one-to-one conversation
• Fixed an issue where the input view would be visible while the loading indicator was visible when deleting from a community
• Fixed an issue where notifications weren't being removed after processing an UnsendRequest
• Fixed an issue where legacy groups had a "Clear for everyone" option but it didn't do anything
• Updated the copy for legacy groups to say "Delete for everyone" instead of "Clear for everyone"
5 months ago
Morgan Pretty e1c5215986 Various dependency changes required to get unit tests working correctly
• Updated the SessionCallManager to be an updated singleton type (cleaned up more in Groups Rebuild)
• Updated the PushRegistrationManager to be an updated singleton type (cleaned up more in Groups Rebuild)
• Injected dependencies correctly in a bunch of places
5 months ago
Morgan Pretty 2ee1fa0125 Updated NTS & 1-1 conversation deletion to be consistent with other plats
• Added a few functions to retrieve conversation settings from libSession
• Updated the Note to Self swipe action to be "Hide" (hides the conversation but does not delete the messages)
• Updated the one-to-one deletion behaviour (now syncs both hiding the conversation and deleting it's messages)
• Updated the logic to retrieve the relevant disappearing messages setting from libSession when creating a thread if it doesn't exist (allows us to delete threads without worrying about losing settings)
• Updated a bunch of dependency management & injection code so the unit tests would pass
5 months ago
Ryan ZHAO 5b6d7e8321 fix an issue of keyboard not activating correctly in after following a link 5 months ago
Morgan Pretty 7f069263e2 Merge remote-tracking branch 'upstream/dev' into fix/rework-recipient-state 6 months ago
Morgan Pretty 8170091e34
Merge pull request #1045 from mpretty-cyro/fix/incorrect-contact-deletion
Reworked 'deleteOrLeave' function to remove ambiguity, fixed some strings
6 months ago
Morgan Pretty 091cfcb807
Merge pull request #1038 from RyanRory/fix-disappearing-messages-control-message
Fix disappearing messages control message
6 months ago
Morgan Pretty aeb2fa0f1a Merge branch 'dev' into fix/rework-recipient-state 6 months ago
Morgan Pretty 7af0f865f5 Refactored the 'RecipientState' type
• Refactored the 'RecipientState' type to just be columns on the 'Interaction' table
• Added some syntactic sugar to clean up the 'CallbackWrapper' boilerplate within the LibSession+Networking code
• Fixed an issue where sending a message into a group where you are the only member would result in the message permanently being in the sending state
• Fixed an issue when initially setting up the interaction database structure where the community whisper mechanism needed another column
• Fixed a bug where the MessageSendJob wouldn't time out during path building
• Fixed a bug where the MessageSendJob wouldn't retry 8 times before detecting a timeout (meaning it would retry up to 80 times in total before permanently failing)
6 months ago
Morgan Pretty a32af018a7 Refactored the LintLocalizableStrings script
• Added new 'LintControl' mechanisms to allow for ignoring sections of code
• Added new 'MatchType' mechanisms for excluding unlocalized cases
• Updated the code to explicitly handle localized template strings (both single and multiline)
• Updated the code to process files across multiple threads to improve performance
• Updated the code to use Swift 5.7 regex and store in static variables to prevent reconstruction every time they are used
• Removed the list of individual files which are ignored (now just output a count)
• Fixed an issue where having a localized string on a subsequent line could result in an unlocalized (or incorrectly localized) string not being detected
• Fixed an issue where having multiple strings on a single line could result in an unlocalized string not being detected
• Fixed an issue where zero-width characters would result in the variable count comparison between translations failing
• Fixed a number of localization warnings
6 months ago
Morgan Pretty 472fd61287 Reworked 'deleteOrLeave' function to remove ambiguity, fixed some strings 6 months ago
Ryan ZHAO 8da80ab314 Merge branch 'dev' into standardize-modal-accessibility-id 6 months ago
Ryan ZHAO 5e0b98f713 Merge branch 'dev' into fix-disappearing-messages-control-message 6 months ago
Ryan ZHAO 6b1f4fc5b5 fix disappearing messages config message not syncing 6 months ago
Morgan Pretty 2c9427edcf Refactored MimeTypeUtil to use UniformTypeIdentifiers 6 months ago
Ryan ZHAO b2ce98ea83 standardize modal & input error accessibility ids 6 months ago
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
7 months ago
Morgan Pretty a7e73080fa Minor logging tweaks 7 months ago
Ryan ZHAO 9dde3ed8ac fix enable link preview modal style 7 months ago
Ryan ZHAO 6f5d452b35 fix group leaving modal to respect group admins 7 months ago
Ryan ZHAO a98c213b78 fix disappearing messages strings 7 months ago
Ryan ZHAO f861241b95 fix more strings 7 months ago
Ryan ZHAO 367104c835 fix on strings 7 months ago
Ryan ZHAO 9b676a8083 remove unused block/unblock toast 7 months ago
Ryan ZHAO 263844daba fix unblock modal 7 months ago
Ryan ZHAO f7bc296225 fix group/community leave message 7 months ago
Ryan ZHAO 6e6c5d9a19 show control message on main device when accepting message request 7 months ago
Morgan Pretty 597f94a954 Fixed an issue where you could answer calls without having the mic permission 8 months ago