Commit Graph

554 Commits

Author SHA1 Message Date
Alfonso Grillo 3ff61f5158 Re-apply changes (#940) 2023-05-22 16:23:03 +00:00
Flescio beb61d109f Flescio/create room action (#925)
* fix invites users screen

* add create room action

* add a task runner with timeout, add fetch room summary after creation

* rename Runner, add Unit Test, separate UserProfile form client proxy

* change to all room summary publisher
2023-05-22 15:27:39 +00:00
Stefan Ceriu 16728ca438 Fixes #923 - Add background color to avatars 2023-05-22 17:41:02 +03:00
Alfonso Grillo d9e0f36aeb Invite people in an existing room (#915)
* Handle power levels

* Add “invite” button in RoomMembersListScreen

* Refactor DI in RoomDetailsScreenCoordinator

* Add navigation to “select people” coordinator

* Add InviteUsersScreenRoomContext

* Add invite user by id api

* Updare InviteUsersScreenRoomContext

* Support disabled state on FormButtonStyles

* Handle membership in UserProfileCell

* Fix conflicts

* Refactor RoomContext -> RoomType

* Refactor UserProfileCell

* Add invite action

* Setup navigation to user flow coordinator

* Add invite logic

* Fix test build errors

* Address comments

* Fix localisations

* Update required state

* Handle error

* Move invite logic in RoomDetailsScreenCoordinator

* Add navigation from room’s members list

* Fix UTs

* Fix missing display name in RoomMemberDetails

* Add user indicator

* Add feature flag

* Add RoomDetailsViewModel UTs

* Add room details ui tests

* Add InviteUsersViewModelTests UTs

* Add UI tests

* Update UI tests

* Empty commit
2023-05-22 14:03:07 +00:00
Mauro 8ed8cf6f0c Delivery Status Redesign (#931) 2023-05-22 15:17:06 +02:00
Velin92 9afc0c0747 Translations update 2023-05-22 08:32:36 +03:00
Alfonso Grillo d15ed1f6a3 Add share link in start chat flow (#926) 2023-05-19 15:34:35 +00:00
Stefan Ceriu 35d7f1f893 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 4e46c01945 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
Mauro eb68f52a0f 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 3ed5e96e5d 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 ce36be4e8b 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 0066761380 Fix styling post code review 2023-05-17 16:17:48 +03:00
Stefan Ceriu 6ec5922956 Update blockquote styling to latest designs 2023-05-17 16:17:48 +03:00
Stefan Ceriu 70790161f1 Start fetching timeline item details directly on creation 2023-05-17 16:17:48 +03:00
Stefan Ceriu 0608c68aee Added custom reply views for all message types as well as a loading state 2023-05-17 16:17:48 +03:00
Flavio Alescio 8b746fcd33 UI section title fix 2023-05-16 18:23:23 +02:00
Flavio Alescio 1b0948d618 remove keyboard from screenshots 2023-05-16 18:23:23 +02:00
Flescio 9fee8e7558 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 8cfb4c70ce 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 fb76d062fc fix compile error, Task not throwing 2023-05-16 18:23:23 +02:00
Flavio Alescio 6723da16c6 remove create room parameters by reference and use coordinator flow instead 2023-05-16 18:23:23 +02:00
Flavio Alescio 372a2d5360 change accesibility identifiers, remove single selection button style, use Picker instead, 2023-05-16 18:23:23 +02:00
Flavio Alescio 41094cb293 fix throwing task compile error 2023-05-16 18:23:23 +02:00
Flavio Alescio da0b35ea6f add screenshots for UI test 2023-05-16 18:23:23 +02:00
Flavio Alescio f8b7b86641 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 2bcefd31e9 UI on create room screen 2023-05-16 18:23:23 +02:00
Flavio Alescio 7ad302e5e7 persisting create room parameter in volatile memory 2023-05-16 18:23:23 +02:00
Flavio Alescio 4eb8906b6b Create room: add selectable state for security, add navigation to screen 2023-05-16 18:23:23 +02:00
Flavio Alescio a4334ebb0d work on text input for room creation 2023-05-16 18:23:23 +02:00
Flavio Alescio 06147cd99c add files for create room screen, add selected users section with test 2023-05-16 18:23:23 +02:00
Stefan Ceriu f1a26417bd Add list name to room summary provider logs to avoid confusion between multiple instances 2023-05-16 12:46:06 +03:00
Stefan Ceriu 1af710d2b0 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 abc86b7368 Disabled the cold cache entirely so we can test out startup performance without it 2023-05-15 17:05:56 +03:00
Mauro a5d555a33d 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 d574c0b405 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 903faf44ea Translations update 2023-05-15 10:55:30 +03:00
Stefan Ceriu a2b38f7656 Fixes cache cleaning behavior after sdk change 2023-05-12 18:47:53 +03:00
Alfonso Grillo 1981270840 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 edc9fe4612 Use the existing quote bubble layout with TimelineReplyView. 2023-05-12 14:44:05 +03:00
Stefan Ceriu 966e347a1b 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 23137726de 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 185710adf4 Remove AppAuth and prepare for Rust OIDC. (#870) 2023-05-11 16:46:36 +01:00
Stefan Ceriu a28e686c8d Add initial sync loading toast indicator 2023-05-11 17:31:44 +03:00
Stefan Ceriu 48bea54822 Tweak toast indicator so that it's a bit more proeminent 2023-05-11 17:31:44 +03:00
Stefan Ceriu 17cfd3ca31 Promote last message room list fetching to .userInitiated 2023-05-11 17:31:44 +03:00
Stefan Ceriu 2a64453e80 Fix the LoadableImage not using the already loaded image from the in-memory cache 2023-05-11 17:31:44 +03:00
Stefan Ceriu 59314cd3c0 Force room list updates to not animate 2023-05-11 17:31:44 +03:00
Stefan Ceriu 3285888100 Show more descriptive errors when failing to retrieve a room tuple 2023-05-11 16:29:06 +03:00
Stefan Ceriu 066006c4be Correct the state machine current state after failing to retrieve a particular room 2023-05-11 16:29:06 +03:00