Commit Graph

1765 Commits (1439b1b033d149d2cff2ea5fb03af6e19e1315b2)

Author SHA1 Message Date
Morgan Pretty 1439b1b033
Merge pull request #327 from mpretty-cyro/fix/input-not-reappearing
Fixed some issues with message deletion and the input field
10 months ago
Morgan Pretty b1507de9b8
Merge pull request #324 from mpretty-cyro/fix/incorrect-queries
Fixed a couple of incorrect queries from a previous optimisation
10 months ago
Ryan ZHAO 25ffe98912 fix an issue when app is in background state, call messages are not handled properly 10 months ago
Ryan ZHAO f153fb6cf5 add logic to prevent duplicated message request response being inserted into database 10 months ago
Ryan ZHAO 83a0849f66 add some more logs for testing and debug 11 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"
11 months ago
Morgan Pretty dcb320ca91 Fixed a couple of incorrect queries from a previous optimisation 11 months ago
Ryan ZHAO 71de47e1b9 fix an issue where thumbnail is not properly generated 11 months ago
RyanZhao fac94f94be
Merge pull request #1048 from mpretty-cyro/feature/query-optimisation
Updated the SQL for checking session id prefixes
12 months ago
Morgan Pretty 7f069263e2 Merge remote-tracking branch 'upstream/dev' into fix/rework-recipient-state 12 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
12 months ago
Morgan Pretty 091cfcb807
Merge pull request #1038 from RyanRory/fix-disappearing-messages-control-message
Fix disappearing messages control message
12 months ago
Morgan Pretty aeb2fa0f1a Merge branch 'dev' into fix/rework-recipient-state 12 months ago
Morgan Pretty 532bbd2590 Updated the SQL for checking session id prefixes 12 months ago
Morgan Pretty d2f062cfb2 Removed a couple of unused variables 12 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)
12 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
12 months ago
Morgan Pretty 472fd61287 Reworked 'deleteOrLeave' function to remove ambiguity, fixed some strings 12 months ago
Ryan ZHAO bfa059f415 Merge branch 'dev' into fix-disappearing-messages-control-message 12 months ago
Morgan Pretty afb60fbf5c Fixed a couple of bugs with attachment path creation 1 year ago
Ryan ZHAO 5e0b98f713 Merge branch 'dev' into fix-disappearing-messages-control-message 1 year ago
Ryan ZHAO 6b1f4fc5b5 fix disappearing messages config message not syncing 1 year ago
Morgan Pretty 2c9427edcf Refactored MimeTypeUtil to use UniformTypeIdentifiers 1 year 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
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