2134 Commits

Author SHA1 Message Date
Stefan Ceriu
b122b02bee
Share extension (#3506)
* Setup simple share extension

* Switch the app url scheme to be the full bundle identifier

* Setup a share extension that show a SwiftUI view, uses rust tracing and redirects to the hosting aplication

* Move media as json through the custom scheme into the main app and deep link into the media upload preview screen

* Fix message forwarding and global search screen room summary provider filtering.

* Tweak the message forwarding and global search screen designs.

* Add a room selection screen to use after receiving a share request from the share extension

* Fix share extension entitlements

* Share the temporary directory between the main app and the extensions; rename the caches one.

* Remove the no longer needed notification avatar flipping fix.

* Extract the placeholder avatar image generator from the NSE

* Nest `AvatarSize` within the new `Avatars` enum

* Donate an `INSendMessageIntent` to the system every time we send a message so they appear as share suggestions

* Support suggestions in the share extension itself

* Improve sharing animations and fix presentation when room already on the stack

* Clear all routes when sharing without a preselected room.

* Fix broken unit tests

* Various initial tweaks following code review.

* Correctly clean up and dismiss the share extension for all paths.

* Move the share extension path to a constants enum

* Rename UserSessionFlowCoordinator specific share extension states and events

* Add UserSession and Room flow coordinator share route tests

* Tweak the share extension logic.
2024-11-13 14:02:47 +02:00
Stefan Ceriu
3a600a94d5 Fix #1947 - Check expected files are still present before restoring a session. 2024-11-12 15:50:51 +02:00
Mauro
f7aeb3ee95
Stacked Avatars View (#3504)
* stacked avatars

* fix tests

* remove comment
2024-11-12 13:00:51 +00:00
Doug
77ade52718
Update the strings for unsupported calls. (#3502) 2024-11-11 17:45:06 +00:00
Doug
a0c99e88ce
Regenerate thumbnails to see if it helps with phantom avatar switching. (#3503) 2024-11-11 16:48:19 +00:00
Doug
468afd8e87
Make stopSync more aware of background usage. (#3501) 2024-11-11 10:32:58 +00:00
Stefan Ceriu
b9409e5310 Tweak the session verification icons and copy. 2024-11-11 12:15:00 +02:00
Velin92
814eff28dd Translations update 2024-11-11 10:57:18 +01:00
Mauro
c9aeebca2d
Fix for creating a knocking room (#3499)
* fix for join rule override in knocking rooms.

* improved some copies
2024-11-08 16:55:32 +00:00
Mauro
e7d4ea0d35
Add alias to public room creation (#3450)
* added the address section

* updated code and strings

* syncing name and address

* improved code

* added a way to reset the state

* better documentation

* update strings

* handling the alias

* alias error state

* update strings

* error handling

* improved the error handling

* new preview tests, even if they do not work well

* improved tests

* unit tests

* pr comments and using the correct value

* fix

* pr comments

* to improve safety and control of the FF

* fixed a test

* updated tests

* update SDK
2024-11-08 15:49:20 +01:00
Stefan Ceriu
c42ef40aa4 #3372 - Stop setting up CallKit sessions when joining calls
- comes following the discussions on https://developer.apple.com/forums//thread/767949?answerId=812951022#812951022
- this removes the lock screen controls entirely and lets the rest of the app behave normally
2024-11-08 10:37:05 +02:00
Doug
4e880f1924
Fix incorrect analytics mapping for UTDs. (#3497)
* Fix incorrect analytics mapping for UTDs.

* Upgrade GitHub workflows to use macOS 15.
2024-11-08 08:36:15 +00:00
Mauro
a5cef53128
Update SDK 1.0.65 (#3494)
* update SDK

* use send queue should be false
2024-11-07 14:40:34 +00:00
Stefan Ceriu
4ac527a9dc Start syncing when receiving a background VoIP call for the cases in which the app was suspended but not terminated. 2024-11-06 20:11:21 +02:00
Mauro Romito
171fc2cdc5 update sdk 2024-11-06 18:24:06 +01:00
Stefan Ceriu
10966ab620 Begin a background task when receiving a call in order to get state updates for longer. 2024-11-06 13:40:58 +02:00
Stefan Ceriu
b9d05fe7f3 Prevent the background task's expiration from stopping the main sync loop. 2024-11-06 13:40:58 +02:00
Velin92
8de44b95bf Translations update 2024-11-06 10:05:15 +02:00
Doug
5fc8caca50
Fix a couple of race conditions when observing room info updates for calls. (#3487)
* Fix a race condition observing room info updates for calls.

* Fix a bug where call observation wasn't set up if the call comes when the app has been killed.
2024-11-05 17:48:07 +00:00
Stefan Ceriu
c54e4bf6d5 Fix race condition when setting up session verification controller subscriptions. 2024-11-05 18:50:29 +02:00
Doug
f3a15f7937
Fix the Setup Recovery flow from the home screen banner. (#3483) 2024-11-05 10:52:51 +00:00
Doug
85d497a4d2
Stop the sync loop after each background app refresh. (#3481) 2024-11-04 17:21:54 +00:00
Doug
6190a03afc
Directly show Recovery Key and Encryption Reset screens from the home screen banner. (#3482) 2024-11-04 17:21:36 +00:00
Doug
8e26718d0b
Encryption Flow Coordinators. (#3471)
* Manage the secure backup screens with flow coordinators.

* Add UI tests for the EncryptionSettingsFlowCoordinator.

* Realise that the settings flow can't reset anymore and remove the sub-flow 🤦‍♂️

* Add UI tests for the EncryptionResetFlowCoordinator.
2024-11-04 14:22:50 +00:00
Mauro Romito
c34e3e8d94 update sdk 2024-11-04 12:25:41 +01:00
Doug
1f90f1a9f1
Enable the Optimised Media Uploads feature. (#3467)
* Enable the Optimised Media Uploads feature.

(Well move the toggle from Developer Options to Advanced Settings)

* Add OptimizeMediaUploads analytics.

* Final strings.

* Upload reduced quality media by default 😢

Move the setting out of the feature flags section in the file.

* Fix unit tests now the default has changed.

* Pull in updated string, fix snapshots.
2024-10-31 14:14:14 +00:00
Doug
0da225205b
Update the strings for out of sync Key Storage. (#3468)
* Update the banner strings for out of sync key storage.

* Update string on SecureBackupScreen.

* Update snapshots

* Update an alert string we weren't using on iOS, and use it at the same place as Android.
2024-10-31 11:33:11 +00:00
Doug
6f158264fa
Update verify identity button title. (#3466) 2024-10-30 16:36:51 +00:00
Doug
368226fd57
Tweak the flow for disabling key storage. (#3464)
* Refactor RoundedLabelItem into the Compound VisualListItem component.

* Update the design of SecureBackupKeyBackupScreen.

* Add a hint to the key storage toggle when disabled.
2024-10-29 17:39:55 +00:00
Doug
c11e49f962
Tweak the flow for setting up a recovery key. (#3463)
* Remove unwanted title.

* Update SecureBackupScreen strings.

* Update SecureBackupRecoveryKeyScreen.

* Show the recovery banner when recovery needs setting up.

* Fix SecureBackupScreen title.

* Fix timeout on MP4 encoding tests
2024-10-29 15:59:22 +00:00
Stefan Ceriu
d77bb935b7
Incoming session verification support (#3428)
* Fixes #1227 - Add support for receiving and interacting with incoming session verification requests.
* Fix a couple of random small warnings
* Move static view config to the view state
* Update snapshots
2024-10-29 15:21:17 +02:00
Doug
cf5e9fb313
Switch to optimised video uploads to 720p (#3462) 2024-10-29 11:44:46 +00:00
Doug
589df7d76e
Use an https callback for OIDC once again. (#3461)
* Use the new WAS callback type and return back to the https callback for OIDC.

* Simplify OIDCAuthenticationPresenter now it doesn't need to handle universal links.

* Remove old unit tests.
2024-10-29 11:28:05 +00:00
Doug
a583892e01
Update translations and some snapshots. (#3459)
* Update snapshots.

* Update translations.
2024-10-28 14:40:02 +00:00
Doug
7c75498b4d
Replace individual RoomProxy properties with a stored RoomInfo. (#3445)
* Store RoomInfo updates in JoinedRoomProxy and read from them directly.

* Remove all RoomProxy properties that were reading from the RoomInfo.
2024-10-28 12:29:31 +00:00
Doug
7c28d9709f
Tweak the flow for changing a recovery key. (#3452)
* Rename Chat Backup setting to Encryption.

* Update Key Storage strings on SecureBackupScreen.

* Update strings/design on SecureBackupRecoveryKeyScreen.
2024-10-28 12:28:13 +00:00
Andy Balaam
4e812f72b9
Enable identity pinning violation notifications unconditionally (#3457)
(Remove the feature flag we added when this feature seemed unstable.)
2024-10-28 12:16:38 +00:00
Stefan Ceriu
b514d54b3d Fix the order of the frequently used emojis when showing them in the full reaction picker. 2024-10-27 16:40:35 +02:00
Stefan Ceriu
7a47e37d38
Fix #1934 - Hook reaction pickers into the system's recently used keyboard emojis (#3453) 2024-10-25 19:58:56 +03:00
Mauro
2511c98090
Knocked Preview implementation (#3426)
* JoinRoomScreen ui for knocking

* code improvement

* updated previews

* added knocked state with tests

* send knock request

* Apply suggestions from code review

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>

* pr comments

* update tests

* new API

* knock implementation and cancel knock

* update strings

* added a knocked cell in the home screen

* design update

* updated SDK

* simplified the invite case code

* pr comments

* updated previews

* added message as reason

* updated strings

* fixing tests

---------

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
2024-10-24 17:23:06 +02:00
Mauro
7d373c07a3
remove iOS 16 support (#3443)
* remove iOS 16 support

* remove iOS 16 support

* test updates

* added more delay

* revert

* adding waiting time on the CI
2024-10-24 17:21:28 +02:00
Doug
cb4d68a756
Fix a bug where the room state wouldn't indicate when a call was in progress. (#3442)
* Fix breaking changes on decryption errors and sending failures.

* Update SDK and analytics events.

* Add extra UTD strings.

---------

Co-authored-by: Stefan Ceriu <stefan.ceriu@gmail.com>
2024-10-24 12:54:52 +01:00
Stefan Ceriu
665bdd191f Fix #3369 - Composer mention pills showing up as file icons on first use on iOS 18 2024-10-24 14:42:30 +03:00
Doug
2b82959430
Fix a bug where the pinned items banner could overlay the composer. (#3441) 2024-10-24 11:26:53 +01:00
Doug
6584b4d084
Update HeroImage to match the BigIcon component from Compound. (#3439)
We can move it across in a following PR.
2024-10-23 12:13:14 +01:00
Stefan Ceriu
8f9f8cbed0 Adopt the changes introduced in matrix-org/matrix-rust-sdk/pull/4159 2024-10-23 12:15:05 +03:00
Doug
a4ea552a83
Show a verification badge on the Room Member/User Profile screens. (#3427)
* Add a badge for verified users/room members.

* Reorder subviews.

* Add a (disabled) button to verify other users.

* PR comments.

* Update the SDK.

* Adopt the SDK changes introduced in matrix-rust-sdk/pull/4100

---------

Co-authored-by: Stefan Ceriu <stefan.ceriu@gmail.com>
2024-10-21 16:07:19 +01:00
Doug
a0c81cf393
Add support for rendering media captions in the timeline. (#3429) 2024-10-21 15:29:03 +01:00
Doug
201e3b0c9c
Fix an issue calculating the width/height of an image. (#3435) 2024-10-21 15:28:23 +01:00
Velin92
4ad0a40898 Translations update 2024-10-21 16:15:26 +03:00