Commit Graph

752 Commits

Author SHA1 Message Date
Stefan Ceriu
5b45818b9d Attempt to simplify the background app refresh flows and always clean up the task while at the same time make sure the task is always cleaned up (#930) 2023-05-19 15:22:27 +00:00
Mauro
4f6f19760f Cleanup the background task that pauses the SDK when resigning active (#903)
* checking if the stop taskHandle is finished before stopping the bg task

* stopping the sync in background now works properly

* this will prevent the case in which if the app suspends and then is immediately foregrounded again, we do not start the sync

* now works as intended

* code improvement

* improved the code a bit
2023-05-19 08:28:30 +00:00
Element CI
d3bdb65766 Prepare next release 2023-05-18 05:11:51 -07:00
Mauro
b0de00a5b5 Run single Test on CI for faster debugging (#896)
* let's disable autocorrection

* waiting some more time in flaky tests and updated the content of a test that was failing

* controlled delay waited a bit moe for the timeline to settle

* try await

* trying with a bit more waiting time after the tap and a slow velocity for the swipe

* let's try waiting more time

* workflow for a single ui test

* las try

* slow swiping tests

* commenting out flaky CI tests, for now we'll just disable them

* better description

* flaky test improvement

* disabling animations that are not needed in UITests

* code that already prevents animations in UI tests

* code improv
2023-05-17 16:15:43 +00:00
Stefan Ceriu
1ff3dfe6ea Fix background app refresh crashes. Make the user session an optional instead of it randomly crashing 2023-05-17 17:58:56 +03:00
Stefan Ceriu
df9c94c3b0 Adopt latest rust side sliding sync fixes. Relates to https://github.com/matrix-org/matrix-rust-sdk/pull/1936 2023-05-17 16:20:13 +03:00
Stefan Ceriu
22e0656633 Fix styling post code review 2023-05-17 16:17:48 +03:00
Stefan Ceriu
25f36c6d23 Update blockquote styling to latest designs 2023-05-17 16:17:48 +03:00
Stefan Ceriu
ada4fb81a4 Start fetching timeline item details directly on creation 2023-05-17 16:17:48 +03:00
Stefan Ceriu
7ec618b7ff Added custom reply views for all message types as well as a loading state 2023-05-17 16:17:48 +03:00
Flavio Alescio
970ad79d2c change on proj 2023-05-16 18:23:23 +02:00
Flavio Alescio
954cba677f fix UI test async 2023-05-16 18:23:23 +02:00
Flavio Alescio
e54e8123d5 remove dismiss keyboard from screenshots 2023-05-16 18:23:23 +02:00
Flavio Alescio
920dcf419f UI section title fix 2023-05-16 18:23:23 +02:00
Flavio Alescio
f8543701b6 remove keyboard from screenshots 2023-05-16 18:23:23 +02:00
Flescio
ab9c687448 Update ElementX/Sources/Screens/CreateRoom/View/CreateRoomScreen.swift
Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>
2023-05-16 18:23:23 +02:00
Flescio
94c632d81b Update ElementX/Sources/Screens/CreateRoom/CreateRoomViewModel.swift
Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>
2023-05-16 18:23:23 +02:00
Flavio Alescio
ae6af5a987 fix compile error, Task not throwing 2023-05-16 18:23:23 +02:00
Flavio Alescio
b7c51d9df1 remove create room parameters by reference and use coordinator flow instead 2023-05-16 18:23:23 +02:00
Flavio Alescio
e8d31a8368 change accesibility identifiers, remove single selection button style, use Picker instead, 2023-05-16 18:23:23 +02:00
Flavio Alescio
60d2de46fa fix throwing task compile error 2023-05-16 18:23:23 +02:00
Flavio Alescio
bef38ef763 add changelog, fix schreenshots 2023-05-16 18:23:23 +02:00
Flavio Alescio
ebb1901d00 add screenshots for UI test 2023-05-16 18:23:23 +02:00
Flavio Alescio
29acc06bca add UI test, separate model class in Services, UI fix for button with single selection style 2023-05-16 18:23:23 +02:00
Flavio Alescio
8e5d9407f7 add test case for room creation 2023-05-16 18:23:23 +02:00
Flavio Alescio
c8df835a9d UI on create room screen 2023-05-16 18:23:23 +02:00
Flavio Alescio
0be12eb2e0 persisting create room parameter in volatile memory 2023-05-16 18:23:23 +02:00
Flavio Alescio
aa7f446536 Create room: add selectable state for security, add navigation to screen 2023-05-16 18:23:23 +02:00
Flavio Alescio
9a56dae3a3 work on text input for room creation 2023-05-16 18:23:23 +02:00
Flavio Alescio
7e162bf604 add files for create room screen, add selected users section with test 2023-05-16 18:23:23 +02:00
Stefan Ceriu
e23d459531 Fix incorrect dependency versions in the new project file 2023-05-16 18:12:51 +03:00
Stefan Ceriu
2c8b1f89ef Resurrect the Xcode project file 2023-05-16 18:00:40 +03:00
Stefan Ceriu
a6c887787b Bump compound-ios to its latest revision 2023-05-16 17:54:53 +03:00
Stefan Ceriu
3a9b477e1b Add list name to room summary provider logs to avoid confusion between multiple instances 2023-05-16 12:46:06 +03:00
Stefan Ceriu
0afaa0a300 Switch the RustSDK to v0.0.1-paginate-only-with-token in order to test out a timeline ordering fix 2023-05-15 19:19:44 +03:00
Stefan Ceriu
1c5aae7bee Work around the fastlane-diawi-plugin getting deleted 2023-05-15 17:06:56 +03:00
Stefan Ceriu
7b7b1fd4b3 Disabled the cold cache entirely so we can test out startup performance without it 2023-05-15 17:05:56 +03:00
Mauro
79b9f54a66 Fixing Tests for Xcode 14.3 (#888)
* settting macOS to 13, and let's runa test of... the tests

* I want the artifacts of the test, might give me some more insight in Xcode

* archive artifact

* trying a thing with the xcode version

* push notifications alert makes this test fail

* test improvement

* let's try with a very long time

* let's disable autocorrection

* sleep

* 1 seconds fixed 90% of the issue, 2 should fix 100%

* waiting some more time in flaky tests and updated the content of a test that was failing

* updated a screenshot test that had a notification

* this integration test is a bit so flaky increased the timing

* controlled delay waited a bit moe for the timeline to settle

* try await

* MainActor everywhere

* milliseconds fix

* trying with a bit more waiting time after the tap and a slow velocity for the swipe

* let's try waiting more time
2023-05-15 13:42:40 +00:00
Stefan Ceriu
c3b029f1a0 Add background app refresh support (#892)
* Add background app refresh support

* Cleanup: move methods around so delegates are implemented above privates and privates are ordered better

* Add discardableResult on the userSessionStore's refreshRestorationToken
2023-05-15 13:06:25 +03:00
Velin92
230ce8286f Translations update 2023-05-15 10:55:30 +03:00
Doug
328c8244e6 Disable unhandled_throwing_task rule. (#890) 2023-05-12 17:45:14 +01:00
Stefan Ceriu
75a48eda60 Fixes cache cleaning behavior after sdk change 2023-05-12 18:47:53 +03:00
Alfonso Grillo
d691878ba0 Invited members in room's members list (#880)
* Add invited people in RoomMembersListScreen

* Optimize main thread perfomance in RoomDetailsScreenViewModel

* Fix member count in RoomDetailsScreenViewModel

* Add warning

* Add performance warnings

* Build members in RoomMembersListScreenViewModel in global queue

* Refactor RoomDetailsScreenViewModel build members process

* Localize strings

* Cleanup

* Fix RoomDetailsScreenViewModelTests UTs

* Fix UI tests

* Add RoomMembersListScreenViewModel UTs

* Add UI tests

* Amend UI tests

* Use clearAndTypeText
2023-05-12 13:12:59 +00:00
Doug
06b7728f5b Use the existing quote bubble layout with TimelineReplyView. 2023-05-12 14:44:05 +03:00
Stefan Ceriu
64bcbd4265 The simmer modifier stopped animating on Xcode 14.3 iOS 16.4. Not entirely sure why but switching onAppear to task fixes it 2023-05-12 14:24:01 +03:00
Mauro
de4d065e60 Disable Local Push Notifications + Start Handling invite notifications (#882)
* disabled local pushes and fixed the issue with the image rendering

* disabled local notifications for now and started implementing invite notificatons

* disabled local notifications for now and started implementing invite notificatons

* removed code that should not have changed

* removed useless comment

* refactored name for category

* fixed a test

* fix

* fix for missing try await

* pr comments
2023-05-12 10:45:59 +00:00
Doug
133fccc812 Remove AppAuth and prepare for Rust OIDC. (#870) 2023-05-11 16:46:36 +01:00
Stefan Ceriu
ff4f5648c3 Add initial sync loading toast indicator 2023-05-11 17:31:44 +03:00
Stefan Ceriu
91411d5aff Tweak toast indicator so that it's a bit more proeminent 2023-05-11 17:31:44 +03:00
Stefan Ceriu
a3a1073686 Promote last message room list fetching to .userInitiated 2023-05-11 17:31:44 +03:00