1945 Commits

Author SHA1 Message Date
Doug
4d7d687954
Start fixing flakey tests ❄️ (#3329)
* Wait longer on authentication flow tests.

* Move default perceptualPrecision value into the snapshot preferences.

* Delay snapshots *before* setting up the test.

* Reset the simulators on GitHub before running?

* Remove a test that is now handled by Rust.

* Fix a test that was yielding.
2024-09-26 16:09:01 +01:00
Valere
23ab453a1e
crypto: rename invisible crypto flag to deviceIsolationMode (#3331) 2024-09-26 12:24:46 +01:00
Stefan Ceriu
dc6d7f2985
Integration test improvements (#3330)
* Send a message from integration tests and check that it doesn't show up in the app logs
* Increase photo library timeout

* Wait for image tapping to process

* Send a message using the rich text editor too

* Wait for the various pickers to finish loading

* Set all logs to `trace` in integration tests

* Close formatting options after sending the second message

* Make sure logs are actually sent to tracing and get redirected to the right file

* Switch from using a custom `trace` log configuration to the lowest level `TracingConfiguration` we support
2024-09-26 10:15:09 +03:00
Doug
a8dbda90d9
Configure the AuthenticationService later now that we have 2 flows on the start screen. (#3316)
* Don't query the homeserver until confirming it (or selecting a different one).

* Setup the infrastructure to test AuthenticationService.

Implement basic tests for configuration & password login.

* Use the real AuthenticationService with a mock Client in all of the tests.

* Add tests for the ServerConfirmationScreenViewModel.

* Remove redundant view state and test for it.
2024-09-25 14:40:18 +01:00
Doug
af8c16150b
Upgrade Kingfisher to fix a bug that prevented GIFs from being tapped. (#3326)
* Upgrade Kingfisher to fix a bug the prevented GIFs from being tapped.

https://github.com/onevcat/Kingfisher/issues/2295

* Fix tests.
2024-09-25 13:10:02 +01:00
Doug
864bd23d35
Use a plain view for reactions instead of a TabView. (#3328)
We don't use any of the TabView features and it shows a tab bar at the bottom when the list is long.
2024-09-25 11:00:18 +01:00
Doug
f772849d2e
Don't use the new iPad modal presentation mode for the timeline item menu. (#3325) 2024-09-24 14:42:45 +01:00
Doug
c264e9e590
Use the UIColors directly instead of wrapping the SwiftUI Colors. (#3324) 2024-09-24 12:24:03 +01:00
Doug
83b0670503
Fix a regression where you can't scroll the timeline on iOS 17 (#3320)
It was caused by a fix for the same bug on iOS 18 🤦‍♂️
2024-09-23 19:00:05 +01:00
Valere
69009a899a
Fix: confusion of lab flags for invisible crypto (#3319) 2024-09-23 16:43:02 +01:00
Doug
4996137006 Fix various flakey tests. 2024-09-23 16:25:49 +01:00
Doug
d41dd47b51 Update Preview tests for Xcode 16. 2024-09-23 16:25:49 +01:00
Doug
e4736b12bb
A bunch of random tweaks. (#3317)
- Fix warning on single case enum.
- Remove unused subjects.
- Fix a lint warning.
- Remove unused success value.
- Fix warning about position of try await.
- Add a note about the common tracing configuration.
- Show an indicator when resolving a send failure fails.
- Make sure the whole row is clickable in the GlobalSearchScreen.
2024-09-23 13:00:40 +01:00
ElementRobot
d48214a98b
Translations update (#3315)
Co-authored-by: Velin92 <34335419+Velin92@users.noreply.github.com>
2024-09-23 10:28:34 +02:00
Mauro
adfd41a3f9
Enable message pinning (#3308) 2024-09-23 09:51:50 +02:00
Matthew Hodgson
78fb64ced2
quick and dirty /join command (#3288)
Co-authored-by: Mauro Romito <mauro.romito@element.io>
Co-authored-by: Mauro <34335419+Velin92@users.noreply.github.com>
2024-09-19 14:29:42 +00:00
Mauro
943f33b496
Await for room sync only for push notification invites (#3307) 2024-09-19 13:42:58 +00:00
Valere
f7d878bac6
crypto: Add configuration flag to enable invisible crypto (#3247) 2024-09-18 16:30:45 +01:00
Stefan Ceriu
9b6470d1f3
Stop delaying subscriptions until after startup (#3294)
- reverts b43797f4bf0a7c20f44ae488ad47da333a7963a5
- relies on https://github.com/matrix-org/matrix-rust-sdk/pull/3981
2024-09-18 12:16:46 +02:00
Doug
63a0a99dbd
Use the new strings for send failures when the unsigned devices are your own. (#3299) 2024-09-18 10:48:16 +01:00
Doug
5078f571ed
Push the deactivate account screen. (#3297) 2024-09-18 10:21:48 +01:00
Doug
5625e78fc9
Add support for account deactivation when not using OIDC. (#3295) 2024-09-17 20:08:35 +01:00
Mauro
efe352c319
Added analytics for message pinning (#3284) 2024-09-17 10:02:26 +02:00
Doug
6efbf6117f
Allow registration on matrix.org using a custom helper URL. (#3282) 2024-09-16 13:05:22 +01:00
Doug
6cfe09b96d
Add a WebRegistrationScreen (not included in the flow yet). (#3281) 2024-09-16 11:03:29 +01:00
Velin92
2745eabc0a Translations update 2024-09-16 08:31:58 +03:00
Doug
93daaf554f
Handle notifications properly when a call is happening. (#3276) 2024-09-13 16:50:29 +02:00
Stefan Ceriu
16d3cb6f3f Log where the user's state and caches folders were setup on startup. 2024-09-13 15:25:17 +03:00
Stefan Ceriu
feaaeb5090 Remove redundant versions.contains(.native) check 2024-09-13 15:25:17 +03:00
Stefan Ceriu
d53e185d81 Replace client side room awaiting with the SDKs new awaitRoomRemoteEcho method 2024-09-13 15:25:17 +03:00
Doug
47a093eb4e
Fix interactive dismissal of our QLPreviewController on iOS 18. (#3274) 2024-09-12 12:22:18 +01:00
Doug
a1c47ad209
Make sure we reset the feature flag when upgrading to SSS. (#3272) 2024-09-12 10:38:07 +01:00
Mauro
0d9d8f9fa4
Sdk v1.0.47 (#3265) 2024-09-11 15:55:15 +02:00
Doug
af3a6ccbed
Make the SessionDirectories type responsible for cleaning up data. (#3261) 2024-09-11 14:32:03 +01:00
Stefan Ceriu
65bacfaae3 Fixes #3173 - Force frame sizes for timeline items that are missing sizing info. 2024-09-11 15:24:25 +03:00
Stefan Ceriu
eb60a8d3f4 Fixes #3249 - Converge on the same max height for both text composers. 2024-09-11 13:52:28 +03:00
Mauro
ed67a29277
Added a pin icon (#3257) 2024-09-11 10:40:11 +00:00
Stefan Ceriu
ff5b22cecf
Bring back default controls for QuickLook based media viewers (#3254)
* Fixes #3243 - Bring back default controls for QuickLook based media viewers
2024-09-11 12:11:30 +03:00
Stefan Ceriu
bef892451e
Add a banner that offers the user to transition to native sliding sync (#3252)
* Fixes #2508 - Offer user to transition to SSS

* Rename `HomeScreenBannerMode.shown` to `HomeScreenBannerMode.show`

* Generate and use preview tests for the migration banner

* Bump the RustSDK to v1.0.46

* Address PR review comment
2024-09-11 08:21:27 +03:00
Mauro
4ec6098838
Allow redacted messages to be viewed and unpinned (#3251) 2024-09-10 15:25:21 +02:00
Doug
539452394e
Add iOS 18 to the Introspect supported versions. (#3248) 2024-09-10 13:24:17 +01:00
Doug
cc4942fb78
Require acknowledgement to send to verified users who have unsigned devices or have changed their identity. (#3215)
* Refactor HeroImage style.

* Add a screen to resolve (crypto-related) timeline item send failures.

* Refactor send failures.

* Update the SDK.
2024-09-10 09:56:11 +01:00
Stefan Ceriu
c2b9a7f170 Fix wrong durations for uploaded media
At some point Uniffi introduced [automatic conversions](35140607dc/uniffi_bindgen/src/bindings/swift/templates/DurationHelper.swift (L19)) from Rust's `Duration` to `TimeInterval`s but the original implementation for media uploading was using milliseconds. When the conversion happened there were no breaking changes and iOS kept sending millis instead of seconds, resulting in **very** wrong values.
2024-09-10 11:11:34 +03:00
Mauro Romito
1a3378f6d3 tweaks for the RC 2024-09-09 18:01:16 +02:00
Stefan Ceriu
2f6fea29f3
Replace Prefire with a very similar but simpler and more direct approach (#3232)
* Replace Prefire with a very similar but simpler and more direct approach

* Move PreviewTest snapshots to their new location (snapshotting default, mirrors UITests)

* Update acknowledgements

* Switch snapshot configuration extensions to a custom version

* Exclude snapshots from the PreviewTests target

* Fix acknowledgements

* Rename snapshotting preference keys

* Remove `skipPackagePluginValidation`
2024-09-09 15:07:41 +03:00
Stefan Ceriu
a4166de502 Add support for showing media playback controls on the lock screen 2024-09-09 14:42:32 +03:00
Stefan Ceriu
d0d24e2d09 Remove spammy logs 2024-09-09 14:42:32 +03:00
Stefan Ceriu
a5fe629790 Fix message composer presendCallback warnings 2024-09-09 14:42:32 +03:00
Stefan Ceriu
37ed7addf5 Fixes #3197 - Allow voice message playback in the background
- inform other audio sessions on deactivation
- let CallKit handle the audioSession for ElementCall
2024-09-09 14:42:32 +03:00
Stefan Ceriu
a0eafe26c3 Fixes #3147 - Remove the sliding sync proxy wait list 2024-09-09 12:41:28 +03:00