Commit Graph

283 Commits

Author SHA1 Message Date
Ryan Zhao 52407aec03 Merge branch 'ipad-support-1' into voice-calls-2 2022-03-02 14:31:31 +11:00
Ryan Zhao 9b075efe0c Merge branch 'dev' into ipad-support-1 2022-03-02 11:32:45 +11:00
Morgan Pretty cb288ca09c Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	Session/Conversations/ConversationVC+Interaction.swift
#	SessionMessagingKit/Open Groups/OpenGroupManagerV2.swift
2022-03-02 11:29:07 +11:00
Ryan Zhao daf0705d42 Merge branch 'dev' into preformance-improvement 2022-03-02 10:53:42 +11:00
Ryan Zhao 167d68870a show conversation settings button after approving message requests 2022-03-02 10:50:15 +11:00
Morgan Pretty bdaae2b347 Moved the copy for the message request approval error into Localizable.strings 2022-03-02 10:06:46 +11:00
Ryan Zhao da66b1af2c fix swiping back for approved message request conversation 2022-03-01 16:51:16 +11:00
Morgan Pretty 9251d98bde Added a loading state when approving a message request
Removed the 'presentTimer' logic from the 'ModalActivityIndicatorViewController' (the delay looked buggy, if it does have "blipping" issues then we can fix those separately)
2022-03-01 16:48:47 +11:00
Morgan Pretty f0f4128db2 Fixed an issue where the MessageRequestResponse could fail to send but would be flagged locally as approved 2022-03-01 15:26:14 +11:00
Morgan Pretty a26ee12f8d Further work on Id Blinding
Renamed the setter for the SOGS 'Server' object for consistency
Updated the Curve25519Kit repo to use an Oxen fork
Updated the MockDataGenerator to accomodate the latest changes
Updated the ConversationVC to better support getting replaced when the conversion from blinded to unblinded happens while on that screen
Added a cache for the mapping between blinded ids and standard ids (gets cached whenever a valid match is found)
Added a migration to remove the old 'authToken, 'lastMessageServerId' and 'lastDeletionServerId' collections (redundant in SOGS V4)
2022-03-01 14:06:37 +11:00
Ryan Zhao 04d25577f4 Merge branch 'dev' into ipad-support-1 2022-03-01 13:26:41 +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 e6b941ea8a Fixed a number of tweaks and bugs with message requests
Removed the "Back" text from the back buttons
Removed the inset on the 'Path' settings button so the text remains horizontally centered
Hid the settings button from message request threads
Fixed an issue where the back button would remain visible in a conversation when the search field was visible
Fixed an issue where the tintColor of the conversation search field didn't match the global search field
Fixed an issue where sending an attachment response to a message request wouldn't approve the message request
Updated the size and positioning of the message request 'Clear All' button to match the DM 'Next' button
Updated the message request 'Clear All' button to start visible (so it's visible during the push animation) since that's the most likely state it'll be in
Updated the 'Message Requests' cell to use the pinned background colour
Updated the fallback for contact thread names to be a middle-truncated string (4 characters either side)
2022-02-28 17:23:34 +11:00
Morgan Pretty 3e97782d18 Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Conversations/ConversationVC.swift
#	Session/Meta/Translations/de.lproj/Localizable.strings
#	Session/Meta/Translations/en.lproj/Localizable.strings
#	Session/Meta/Translations/es.lproj/Localizable.strings
#	Session/Meta/Translations/fa.lproj/Localizable.strings
#	Session/Meta/Translations/fi.lproj/Localizable.strings
#	Session/Meta/Translations/fr.lproj/Localizable.strings
#	Session/Meta/Translations/hi.lproj/Localizable.strings
#	Session/Meta/Translations/hr.lproj/Localizable.strings
#	Session/Meta/Translations/id-ID.lproj/Localizable.strings
#	Session/Meta/Translations/it.lproj/Localizable.strings
#	Session/Meta/Translations/ja.lproj/Localizable.strings
#	Session/Meta/Translations/nl.lproj/Localizable.strings
#	Session/Meta/Translations/pl.lproj/Localizable.strings
#	Session/Meta/Translations/pt_BR.lproj/Localizable.strings
#	Session/Meta/Translations/ru.lproj/Localizable.strings
#	Session/Meta/Translations/si.lproj/Localizable.strings
#	Session/Meta/Translations/sk.lproj/Localizable.strings
#	Session/Meta/Translations/sv.lproj/Localizable.strings
#	Session/Meta/Translations/th.lproj/Localizable.strings
#	Session/Meta/Translations/vi-VN.lproj/Localizable.strings
#	Session/Meta/Translations/zh-Hant.lproj/Localizable.strings
#	Session/Meta/Translations/zh_CN.lproj/Localizable.strings
2022-02-28 10:46:45 +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 c0615fe11d Merge branch 'dev' of https://github.com/oxen-io/session-ios into ipad-support-1 2022-02-25 13:43:49 +11:00
Ryan Zhao c85e3ef86b clean up unused code 2022-02-25 10:57:02 +11:00
Ryan Zhao b32a8cbab2 fix alert vc for iPad 2022-02-24 16:02:24 +11:00
Ryan Zhao 24d8122d78 fix sharing UI for iPad 2022-02-24 15:35:35 +11:00
Morgan Pretty faa8918cd4 Replaced the remaining non-file legacy methods with their non-legacy equivalents
Updated the OpenGroup polling to run on a non-main thread
Updated the TSGroupModel to store moderatorIds as well as the adminIds (new endpoint is only going to give diffs)
Updated the BatchRequest to support json, base64 encoded strings and raw bytes for it's body
Replaced the 'lastMessageServerID' methods with 'OpenGroupSequenceNumber' methods (since we have swapped the property over)
Added an alert when banning fails (previously it would fail silently)
Fixed a bug where sent blinded messages were appearing as incoming messages
Fixed a bug where the OpenGroup infoUpdates wasn't getting decoded correctly
Fixed an issue where the ConversationVC wouldn't become the first responder again after the ban alerts disappeared
Fixed an issue where I'd incorrectly used the message 'seqNo' in place of the message server id
Fixed an issue where open group messages were setting their `sentTimestamp` to seconds instead of milliseconds for incoming messages
2022-02-24 10:39:22 +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
Morgan Pretty 6f1a8fcdc5 Fixed a bug where the most recent message couldn't be interacted with due to message request UI changes 2022-02-22 11:42:11 +11:00
Morgan Pretty dfbee2a520 Removed the single message restriction from message requests (still text only) 2022-02-21 10:10:32 +11:00
Morgan Pretty ef09d4d5aa Additional encryption work on id blinding
Got the updated blinding logic working (at least when authenticating a request - still need to deal with message signing and verification)
Storing the server capabilities in the database now so we can correctly blind requests based on them
Renamed the remaining 'v2' functions and classes to just be 'OpenGroup' since there isn't a 'V2' anymore
Cleaned up a few TODOs and functions
2022-02-17 18:33:23 +11:00
Morgan Pretty 3639a21bc8 Fixed bugs raised by QA
Added some missing localised strings
Prevented 'Read' and 'Typing' indicators from functioning on Message Requests
Prevented link previews on the first message of a message request
Added a confirmation alert when trying to clear all message requests
Added a confirmation alert when trying to delete a message request
Added an empty state to the MessageRequestsViewController
Updated the back behaviour of the ConversationVC to behave more nicely with approving/declining message requests
Updated the OWSBlockingManager to also update the stored contacts 'isBlocked' flag to match
2022-02-17 16:29:14 +11:00
Morgan Pretty 999d4a1082 Merge branch 'dev' into feature/message-requests
# Conflicts:
#	Session/Conversations/ConversationVC+Interaction.swift
2022-02-17 11:52:23 +11:00
Ryan Zhao c32cc4d649 Merge branch 'feature/pdf-preview' of https://github.com/mpretty-cyro/session-ios into voice-calls-2 2022-02-16 09:38:52 +11:00
Morgan Pretty 63e6cdd9ec Renamed OpenGroupAPIV2 to OpenGroupAPI
Added the inbox endpoints
2022-02-15 16:30:11 +11:00
Ryan Zhao 3fb7babecb clean 2022-02-15 13:59:01 +11:00
Morgan Pretty eb927c36a9 Started cleaning up some of the SOGS and Onion Requests structure
Cleaned up the OnionRequestAPI so we don't need the LegacyOnionRequestAPI
Added requests for the user endpoints
Added deprecated flags to the legacy endpoints and functions
Added some logic to start handling the new poll (batch) response
Started adding unit tests for the OpenGroupAPI functions
2022-02-15 13:55:59 +11:00
Morgan Pretty 051f03f4b4 PR comments and a few missed use cases
Disabled the attachments and voice message buttons for the first message
Disabled the Disappearing Messages flag for the until the conversation is approved
Fixed a bug where the recipient of a message request could incorrectly get the 'pending approval' state
Refactored some standard auto layout code to use the custom extension code
2022-02-14 17:49:08 +11:00
Morgan Pretty 1b820c48c6 Added support for Microsoft Word, Excel & Powerpoint previews 2022-02-14 10:02:33 +11:00
Morgan Pretty 161a90ad28 Updated the code to show the document interaction controller for text files as well 2022-02-14 09:54:17 +11:00
Morgan Pretty bdf2b825ad Updated the code to disable input for unapproved conversations after sending the first message 2022-02-11 11:26:04 +11:00
Morgan Pretty ad9282a7b9 Removed 'publicKey' from the MessageRequestResponse and updated logic to use 'message.sender' isntead 2022-02-11 10:47:27 +11:00
Ryan Zhao 2d9f962a97 Merge branch 'dev' of https://github.com/oxen-io/session-ios into voice-calls-2 2022-02-04 14:21:54 +11:00
Morgan Pretty 185b2d2a97 Merge branch 'dev' into feature/pdf-preview
# Conflicts:
#	Session/Conversations/ConversationVC+Interaction.swift
2022-02-04 11:51:51 +11:00
Morgan Pretty cd61fb8df0 Merge branch 'dev' into feature/message-requests
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	SignalUtilitiesKit/Utilities/UIColor+Extensions.swift
2022-02-04 11:49:54 +11:00
Morgan Pretty 9db5083cc5 Built out the Message Request functionality
Added the MessageRequestsViewController
Added a 'Message Requests' button to the settings screen
Added accept/reject buttons for message requests to the ConversationVC
Added the ability to hide the message request item on the HomeVC (re-appears if you get a new message request)
Added code to handle an edge-case where the message request approval state wouldn't be returned to the sender due to the recipient running an old version of the app
Prevented contacts which aren't associated with an approved thread from appearing when creating a closed group
Disabled notifications for threads which aren't approved
Updated the app notification count to exclude unapproved messages
Updated the app to ignore closed group creation messages if the group has no admins which are approved contacts
Fixed up the keyboard avoidance behaviour in the ConversationVC
Fixed a couple of minor interaction issues which affected some devices
Fixed an issue where the database migrations would run on the 2nd launch when creating a new account (causing odd behaviours)
2022-02-02 16:59:56 +11:00
Morgan Pretty bee36423da Fixed a couple of issue with sharing large attachments
Added back localized attachment error messages
Fixed an issue where sending an attachment could fail and the screen would be dismissed before the user had a chance to read the error
2022-02-01 14:55:03 +11:00
Morgan Pretty b85c113da6 Added code to preview PDF attachments 2022-01-28 16:24:18 +11:00
Ryan Zhao 0dcb8f81ca Merge branch 'dev' into voice-calls-2 2021-12-15 10:33:46 +11:00
Ryan Zhao 5803eae134 clean 2021-12-14 15:12:48 +11:00
Ryan Zhao b2b03eb273 clean up call button appearance logic 2021-12-14 13:57:00 +11:00
Ryan Zhao bbccbe42c1 copy / paste images directly 2021-12-13 15:51:42 +11:00
Ryan Zhao 71e6ccd94b add flag for enable/disable call function 2021-12-08 14:08:01 +11:00
Ryan Zhao a8dd010b06 Merge branch '1.11.19' into voice-calls-2 2021-11-22 09:33:27 +11:00
Ryan Zhao d3a2b456f1 handle permission request for voice and video calls 2021-11-18 10:39:50 +11:00
ryanzhao 13b7b1edb6 Keep screen on when recording voice message 2021-11-16 10:36:31 +11:00
ryanzhao edffbe7d4c fix data channel and uuid check 2021-11-12 13:32:27 +11:00
ryanzhao 336c694b52 refactoring on showing call ip exposure 2021-11-11 12:12:12 +11:00
ryanzhao ff79c58f44 update call message after a call ended 2021-11-09 16:05:23 +11:00
ryanzhao f019fe7733 use CallKit for all cases 2021-11-09 11:53:38 +11:00
ryanzhao 4db87992b2 refactor for voip push notification 2021-10-29 15:22:23 +11:00
ryanzhao 0ef7bdc9ce refactor to plug in callkit 2021-10-28 17:02:41 +11:00
ryanzhao bcf0ecfb69 show modal of ip exposure for calls 2021-10-25 11:49:54 +11:00
ryanzhao 7dfb999239 Merge branch 'dev' of https://github.com/oxen-io/session-ios into voice-calls-2 2021-10-25 09:38:03 +11:00
ryanzhao 3a38f44d1f fix deleting message in open groups 2021-10-22 11:59:57 +11:00
ryanzhao 1231b9c20a add preview before staring video 2021-10-21 16:28:48 +11:00
ryanzhao fbe5b12c9d WIP: incoming call banner 2021-10-06 17:00:12 +11:00
ryanzhao 383f996e82 WIP: improve call UI 2021-09-29 11:17:48 +10:00
ryanzhao 5354185696 improve UI 2021-09-23 12:55:28 +10:00
ryanzhao 019a2cd299 add options for voice call and video call 2021-09-22 11:44:35 +10:00
ryanzhao e8500d75a7 fix input panel issue & make local video view draggable 2021-09-21 15:11:48 +10:00
ryanzhao daee269a7a Merge branch 'dev' into voice-calls-2 2021-09-20 12:00:06 +10:00
ryanzhao bf2725183d automatically add space after mention 2021-09-14 15:20:48 +10:00
ryanzhao 6e07c56e7d Merge branch 'master' of https://github.com/oxen-io/session-ios into voice-calls-2 2021-09-07 14:51:50 +10:00
ryanzhao a7e9606833 add copy link option when clicking a link 2021-08-31 10:28:45 +10:00
Niels Andriesse c1a61e897b UI improvements 2021-08-18 09:56:28 +10:00
Niels Andriesse e899804b85 Rename CallVCV2 → CallVC 2021-08-18 08:56:11 +10:00
Niels Andriesse 525eb40d8d Make signaling happen using Session messages 2021-08-17 15:41:13 +10:00
Niels Andriesse b54cd3b026 Add call button to conversation screen 2021-08-16 16:24:49 +10:00
Niels Andriesse 45042a1acf Fix typos 2021-08-10 11:17:04 +10:00
ryanzhao eee9ceff39 fix crash for older messages 2021-08-09 16:57:32 +10:00
ryanzhao 31cf0b7b20 don't send unsend requests for open groups 2021-08-09 16:13:36 +10:00
ryanzhao 76a96c31bf add flag to disable unsend request for now 2021-08-09 13:51:09 +10:00
ryanzhao 5f2890a1fc Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 2021-08-09 11:21:29 +10:00
Mark Feaver f0fb4529c8 Disabled tableview scroll when swiping to reply in a conversation 2021-08-08 17:57:48 +10:00
Ryan Zhao b714565480 smooth the hide and show of the input accessory view 2021-08-05 16:55:49 +10:00
Ryan Zhao 4904d2cdcf localisation 2021-08-05 16:15:11 +10:00
Ryan Zhao 90bd775fd5 show delete options for only outgoing messages 2021-08-05 16:05:52 +10:00
Ryan Zhao 8c897dcc3d use action sheet to show options for deleting a message 2021-08-05 15:59:23 +10:00
Ryan Zhao da1fe9b287 clean 2021-08-05 14:55:33 +10:00
Ryan Zhao e1b99be6f2 disable interactions with deleted message in conversation screen 2021-08-05 13:36:56 +10:00
Ryan Zhao 885e9296d1 Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 2021-08-03 10:26:30 +10:00
Niels Andriesse 593ab49952 Increase voice message recording limit to 3 minutes 2021-08-03 09:12:01 +10:00
Ryan Zhao 4d65c6c340 minor refactor 2021-08-02 11:32:46 +10:00
Ryan Zhao 5a26331abc delete locally for multi device 2021-08-02 11:19:08 +10:00
Ryan Zhao 6aa865e7b7 delete locally and send unsend request 2021-07-30 16:51:43 +10:00
Ryan Zhao bb49d7236f ui for 2 types of deletion 2021-07-30 15:26:58 +10:00
ryanzhao 25b9b06044 fix unread count not disappear after scrolling to bottom 2021-07-27 14:45:23 +10:00
Niels Andriesse 44288c45e9 Fix auto scroll to bottom bug 2021-07-22 11:10:30 +10:00
ryanzhao 40d2832a30 Merge branch 'dev' of https://github.com/oxen-io/session-ios into conversation-scroll-issues 2021-07-20 10:17:30 +10:00
Niels Andriesse 6d2044f230 Warn users if they're about to send their recovery phrase to someone 2021-07-19 13:15:02 +10:00
ryanzhao 221eabc496 fix scroll to button not always works 2021-07-16 13:27:27 +10:00
Niels Andriesse e84fc1aa04 Include destination info in error messages 2021-07-15 09:47:03 +10:00
Niels Andriesse dfdffc607c Make profile pictures tappable 2021-07-14 15:56:56 +10:00
Niels Andriesse ba60879343 Add support for new ban and delete all endpoint 2021-07-13 14:33:42 +10:00
Niels Andriesse 3238487917 Don't send screenshot notifications
None of the other platforms are able to do it, so it's inconsistent for iOS to be sending them
2021-07-13 13:47:28 +10:00
Niels Andriesse f0b74c31fa Minor refactoring 2021-07-01 16:15:04 +10:00
nielsandriesse 2c589a6935 Enable data extraction notifications 2021-06-01 09:58:10 +10:00
Niels Andriesse 3fda8daec9 Merge branch 'dev' into cleanup 2021-05-20 16:25:59 +10:00
Niels Andriesse e4d1925436 Show confirmation dialog 2021-05-07 15:18:57 +10:00
Niels Andriesse e3671291c5 Merge branch 'dev' into cleanup 2021-05-07 13:06:48 +10:00
Niels Andriesse 976d3343ee Fix mentions 2021-05-07 10:10:25 +10:00
nielsandriesse e1ad33e832 Clean 2021-05-05 14:22:29 +10:00
nielsandriesse 49f3b9f7db Rename contactIdentifier → contactSessionID 2021-05-05 10:00:39 +10:00
Niels Andriesse d3412be955 Merge branch 'dev' into deferred-attachment-downloads 2021-04-08 16:17:55 +10:00
Niels Andriesse cc2e43821f Quick fix dark mode issue 2021-04-08 16:14:25 +10:00
Niels Andriesse efb23a5cb3 Clean 2021-04-08 16:03:52 +10:00
Niels Andriesse 0fc181ae9a Fix voice message handling 2021-04-08 15:32:36 +10:00
Niels Andriesse aa5b0ed6e4 Don't show placeholder for sent media 2021-04-08 15:08:34 +10:00
Ryan ZHAO cf148fe845 handle access to selected photos & optimise the process of request photo library permission 2021-04-08 13:36:20 +10:00
ryanzhao df1b4fda57 try to handle limited photo permission 2021-04-07 16:47:39 +10:00
nielsandriesse 5ed5c02ad4 Debug 2021-04-07 15:41:57 +10:00
nielsandriesse a360fa7721 Merge branch 'dev' into deferred-attachment-downloads 2021-04-07 14:58:57 +10:00
Ryan ZHAO 3030723bb3 fix link preview scrolling issue 2021-03-30 13:55:18 +11:00
Niels Andriesse 6c84e922a5
Merge pull request #370 from oxen-io/open-groups
V2 Open Groups
2021-03-29 11:50:25 +11:00
nielsandriesse c6f4443eed Update more logic for V2 open groups 2021-03-24 14:36:26 +11:00
Niels Andriesse e26f6e946b Update comment 2021-03-19 16:53:27 +11:00
Ryan ZHAO 8c66b8febc scroll to the bottom after the message has the attachment IDs 2021-03-19 16:15:06 +11:00
Niels Andriesse 960e500acd Don't auto-download attachments from untrusted contacts 2021-03-05 11:48:31 +11:00
Niels Andriesse 8738829358 Fill in media saved notification implementation gaps 2021-03-04 16:06:06 +11:00
Niels Andriesse 52eaa8cdeb Disable data extraction notifications for now 2021-03-02 15:15:57 +11:00
Niels Andriesse b21163a421 Handle media saved notifications 2021-03-02 15:14:00 +11:00
Niels Andriesse 9d6d68d33e Handle screenshot notifications 2021-03-02 15:00:28 +11:00
Niels Andriesse dfb2369ab8 Show unread count on scroll to bottom button 2021-03-02 11:46:29 +11:00
Niels Andriesse 67ea1782ef Add documentation 2021-03-02 10:18:08 +11:00
Niels Andriesse 21c7d0ce03 Implement drafts 2021-03-02 09:33:31 +11:00
Niels Andriesse 57eb5f8ef4 Make conversation title tappable 2021-03-01 15:15:37 +11:00
Niels Andriesse 1dc8a8270f Fix crash 2021-02-26 09:36:07 +11:00
nielsandriesse 9cda22b640 Fix ugly transition 2021-02-24 11:02:56 +11:00
Niels Andriesse d30fd2fb07 Clean 2021-02-19 16:02:19 +11:00
Renamed from Session/Conversations V2/ConversationVC+Interaction.swift (Browse further)