Commit Graph

623 Commits

Author SHA1 Message Date
Morgan Pretty c9edac4ea8 Updated the code to add the port if present... 2022-03-21 14:42:11 +11:00
Morgan Pretty 7ae1342341 Fixed an issue where open groups with no scheme in the url might not match correctly 2022-03-21 14:32:48 +11:00
RyanZhao c7bf20dd85
Merge pull request #593 from mpretty-cyro/fix/duplicate-open-groups-from-url-differences
Fix duplicate open groups from url differences
2022-03-21 14:16:40 +11:00
RyanZhao 9e020948d6
Merge pull request #594 from RyanRory/bug-fixes-1.11.23
Bug fixes for 1.11.22
2022-03-21 14:11:42 +11:00
RyanZhao 34bc0e54d6
Merge pull request #590 from mpretty-cyro/fix/open-group-url-parsing
Fix for parsing open group urls with no scheme
2022-03-21 13:59:27 +11:00
RyanZhao c1632bee36
Merge pull request #589 from mpretty-cyro/fix/ensure-contacts-blocked-state-syncs-correctly
Fix to ensure contacts blocked state syncs correctly
2022-03-21 13:58:59 +11:00
Morgan Pretty 83fa679574 Fixed some incorrect logic (previously prevented joining other rooms in a server) 2022-03-21 13:57:06 +11:00
Ryan Zhao 8652268557 add logs & fix PN 2022-03-21 13:55:51 +11:00
Morgan Pretty d3b54b84d0 Prevent the user from joining duplicate open groups due to url differences
Updated the OpenGroupManagerV2 to handle HTTP scheme variants and official host variants when checking if the user is already in an open group
2022-03-21 13:52:18 +11:00
Morgan Pretty 452614d190 Fixed a bug where the OpenGroup url parsing wasn't working for a certain URL structure 2022-03-18 10:20:59 +11:00
Morgan Pretty d4c0acb2a7 Updated the configuration message to sync the blocked state correctly 2022-03-17 14:17:33 +11:00
Morgan Pretty 2e10ccf99d Updated the code to cache the retrieval of the user public key 2022-03-15 16:06:53 +11:00
Ryan Zhao 6f927a5003 minor refactor 2022-03-15 14:27:11 +11:00
Ryan Zhao a1e47419c8 minor refactor 2022-03-15 14:03:17 +11:00
Ryan Zhao b920dbcc10 check if the incoming message is already in database before persisting 2022-03-15 14:00:36 +11:00
Ryan Zhao 48c74d9476 refactor to apply this logic to unread message count 2022-03-11 15:48:12 +11:00
Ryan Zhao 06958babcb fix unread mention indicator showing after the message is deleted 2022-03-11 11:43:21 +11:00
Ryan Zhao 30e1f34782 fix configuration message may include contacts that shouldn't be visible 2022-03-10 17:22:39 +11:00
Morgan Pretty 0e15c63e6b Fixed a case where a the share extension wasn't using a transaction version of a method 2022-03-10 16:58:08 +11:00
Morgan Pretty c2e13f02bc Fixed a crash which could occur while processing message request notifications due to not using a DB transaction 2022-03-10 16:50:48 +11:00
RyanZhao 20f99df0be
Merge pull request #577 from RyanRory/bug-fix-1-11-22
Bug fix 1.11.22
2022-03-10 14:53:06 +11:00
Ryan Zhao e72f0f528d fix notification body for attachments 2022-03-10 14:50:39 +11:00
Morgan Pretty 3e380ede4e A couple of message request fixes
Added an error state to the OpenGroupSuggestionGrid
Fixed a bug where the settings button wouldn't appear for the sender of a message request once approved
2022-03-10 14:33:20 +11:00
Morgan Pretty c0e90152ce Fixes for config message handling
Updated the config message handling to try fetch the existing contact first before creating a new one
Updated the OpenGroupManagerV2 to avoid joining an open group if the user already has a thread for it and is polling it
2022-03-09 17:44:34 +11:00
RyanZhao d80042cf7f
Merge pull request #573 from mpretty-cyro/fix/only-sync-closed-groups-once
Fix to Only Sync Closed Groups Once
2022-03-09 12:05:13 +11:00
Morgan Pretty 0f78e1af61 Updated the code to only add closed groups for the first config message received 2022-03-09 11:52:12 +11:00
Ryan Zhao b632f6a925 avoid conflicts with call beta in TSInfoMessageType 2022-03-09 11:48:49 +11:00
Ryan Zhao 60e8da3bff Merge branch 'dev' into preformance-improvement 2022-03-08 11:08:45 +11:00
Morgan Pretty af543b980b Made a couple of changes to how the ConfigurationMessage is generated and handled
Stopped configuration messages from automatically creating threads for sync'ed contacts (now they will only be created if there are messages)
Updated the ConfigurationMessage to stop truncating the list of contacts but filter the full set (also update the logic to include previously approved contacts)
2022-03-07 10:22:46 +11:00
Morgan Pretty decb946bf3 Fixed an unrecognised selector crash hidden by the conversion of Objective-C to Swift 2022-03-04 17:17:58 +11:00
Ryan Zhao daf0705d42 Merge branch 'dev' into preformance-improvement 2022-03-02 10:53:42 +11:00
Ryan Zhao f632763eee revert debug code 2022-03-02 09:41:23 +11:00
Morgan Pretty 1b3f6c0ca6 Minor tweaks to the message request banner on the HomeVC
Fixed the unread message counting for message requests
Updated the message request banner to indicate the number of message requests with an unread message
Updated the message request banner to automatically disappear if the user has no unread message requests
Renamed a variable for ReadReceipt management to make it a bit more self-documenting (it looked like it would trigger a read receipt to be sent regardless of the setting)
2022-03-01 17:25:53 +11:00
Ryan Zhao 1609812e5b remove useless expiration flag in data message 2022-03-01 17:15:38 +11:00
Ryan Zhao 6b231316ee fix & improve voice message preview in home screen 2022-03-01 13:22:53 +11:00
Ryan Zhao 7e92391740 Merge branch 'dev' of https://github.com/oxen-io/session-ios into preformance-improvement 2022-03-01 10:30:51 +11:00
Morgan Pretty b077061714 Updated the code to parse an open group URL to handle a '/r/' before the room name 2022-02-28 17:29:17 +11:00
Ryan Zhao f22672ccd7 Merge branch 'dev' of https://github.com/oxen-io/session-ios into preformance-improvement 2022-02-25 14:58:20 +11:00
Ryan Zhao 7a677a1800 move pollers to one working queue to avoid race condition 2022-02-24 16:47:08 +11:00
Morgan Pretty 4c89c165d8 Fixed a few bugs uncovered by QA
Fixed a bug where the ConfigurationMessage was getting generated before the contact state was persisted to the database in the message request flow causing odd behaviours (now generating the ConfigurationMessage within the same transaction)
Fixed a bug where sending a message to an existing message request thread once the message requests item has been hidden would show the message requests notification and trigger the section to re-appear on the home screen
Fixed a bug where blocked contacts weren't getting excluded from the contacts list in the configuration message
2022-02-23 17:12:57 +11:00
ryanzhao 7c2e25e25a remove useless code 2022-02-23 15:31:06 +11:00
ryanzhao cd97b9c3e8 minor fix on poller threading 2022-02-23 12:47:44 +11:00
Morgan Pretty 582ff0997a Fixed a couple of crashes and added some mock data generation logic
Possibly fixed a crash due to a database deadlock
Fixed a crash when the first message requests gets added if there are no other threads
Added code to generate a bunch of random thread data (Needs some testing to ensure no data leaves the device)
2022-02-22 15:51:17 +11:00
ryanzhao b2ab984586 refactor on timer and polling threading 2022-02-22 14:01:48 +11:00
Ryan Zhao d21c5329e3 further improvements to move poller into background threads 2022-02-21 17:01:33 +11:00
Ryan Zhao cb127be5a2 minor clean 2022-02-21 15:44:52 +11:00
Ryan Zhao 36907d3af0 improve mention and unread message count 2022-02-21 14:49:47 +11:00
Morgan Pretty 47314bd639 Added a notification to indicate the user has a new message request
Fixed a bug where the notification count could be increased for message requests
Fixed a bug where an approved contact could be 'unapproved' due to an order of execution issue when generating the config sync message
Fixed a check to avoid registering for push notifications when on the simulator (old check didn't cater for M1 Macs)
Moved the 'hasHiddenMessageRequests' into the group user defaults so it can be accessed within the notification extension
Added code to handle an edge case where an old client could incorrectly un-approve a contact via a legacy configuration message
2022-02-21 14:48:53 +11:00
Ryan Zhao 16c9b7793a move pollers to background threads 2022-02-21 13:27:44 +11:00
Ryan Zhao a86310b0f5 improve global search performance 2022-02-21 13:20:34 +11:00