715 Commits

Author SHA1 Message Date
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
Doug
1ca717219a
Disable unhandled_throwing_task rule. (#890) 2023-05-12 17:45:14 +01: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) nightly/1.1.0.208 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
Stefan Ceriu
02e7ab44c1 Overhaul room list updates logging 2023-05-11 16:29:06 +03:00
Stefan Ceriu
3468ed2a02
Various test fixes (#873)
* Switch back to macos-12 and see if the tests work

* Fix unit tests, add default invited, joined and active member counts to the mock room proxy

* Try running UI tests on 14.3 but on an existing iPad simulator

* Revert "Try running UI tests on 14.3 but on an existing iPad simulator"

This reverts commit b075e7fa384330a9070dc35ed4dded57e0af26e1.
2023-05-11 16:28:35 +03:00
Stefan Ceriu
16eb3311f0 Fix fastlane syntax error 2023-05-11 14:09:36 +03:00
Stefan Ceriu
3b5f879e0d Bump the SDK to 1.0.64-alpha 2023-05-11 14:07:09 +03:00
Stefan Ceriu
a762fdbc69
Tag nightlies after a successful build (#871)
* Tag nightlies after a successful build

* Tweaks and fixes after code review
2023-05-11 13:34:37 +03:00
Mauro
b83e8a5bcc
Update SDK to 1.0.63 (#869)
* bump sdk to 1.0.63

* code improvement
2023-05-10 14:36:40 +03:00
Stefan Ceriu
13aabab1ab Collect timeline diffs for a bit longer 2023-05-09 18:19:33 +03:00
Stefan Ceriu
0d27ed1bbd Low effort fix for timeline date separator glitches 2023-05-09 18:19:33 +03:00
Alfonso Grillo
faefb00626
Optimize leaving a room from home screen (#868)
* Use joinedMembersCount in HomeScreenViewModel

* Update matrix-rust-sdk to 1.0.62-alpha
2023-05-09 17:06:19 +02:00
Stefan Ceriu
1bd6e461ed
Reply rendering (#861)
* Cleanup how we use message timeline items in preparation for rich reply rendering

* Expose reply details up to the UI level

* Render replies in the timeline (textual for now). Remove now unused AttributedStringBuilderComponent isReply flag.

* Move reply detail loading to when the item appears instead of when it's created.

* Fix unit tests

* Fetch event details also when the reply details are in the error state

* Tweaks following code review

* Localise emote bodies

* Fix replies not loading sometimes, use the current event identifier instead of the one being replied to
2023-05-09 16:09:38 +03:00
Mauro Romito
483d261504 removed clean process.environment 2023-05-09 11:56:48 +02:00
Stefan Ceriu
061e66ff57 Improve media uploading content type selection. Fix pasting in screenshots not working 2023-05-09 12:45:09 +03:00
Stefan Ceriu
ba02c439dd
No restart sliding sync (#866)
* Adopt new sliding sync list interaction APIs

* Re-enable summary providers, be more leninent in the list proxy and remove now unnecessary restartSync method

* Rename all sliding sync views to lists

* Bump the SDK to v1.0.61-alpha
2023-05-09 07:46:46 +03:00
Stefan Ceriu
521eeb2ecf
Fix missing UI tests simulator (#860)
* Fix UI and integration tests missing simulators (older)

* Update fastlane and dependencies
2023-05-09 07:43:44 +03:00
Mauro
542cefd703
Fix for the sender icon not being rendered in notifications sometimes (#862)
* fix for the sender icon not being rendered sometimes in notifications

* removing a line

* removing the environment every time we run a zsh command

* removed unused parameters that we already have stored in the notification

* changelog
2023-05-08 15:05:55 +00:00
Velin92
8cfb415410 Translations update 2023-05-08 08:14:56 +03:00
Stefan Ceriu
abc3523e7f Fix live photos failing to upload 2023-05-05 19:42:25 +03:00
Stefan Ceriu
574424024c
Add developer option for clearing the application cache (#852)
* Add developer option for clearing the application cache

* Tweaks following code review
2023-05-05 19:41:21 +03:00
Mauro
f679c0ca2a
Remote Push Notifications can now be decrypted (#854)
* refactored the NSE to use the client function

* removed unused imports in the target.yml

* some code improvements

* changelog

* code improvement

* code improvement

* more code improvements

* separated the client and the media provider in a dedicated NSEUserSession

* Update ElementX/Sources/Services/Client/ClientProxy.swift

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

* pr suggestions

* logging the error

---------

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
2023-05-05 15:29:46 +00:00
Mauro Romito
b17c987fd0 sdk bump to 1.0.60 2023-05-05 15:44:18 +02:00
Stefan Ceriu
93e3a1a80b
Media uploading (#851)
* MediaUploadingPreprocessor - Prevent images without any GPS metadata from being changed

* Add support for sending images

* Add support for sending video, audio and file attachments

* Rename MediaPickerPreview to MediaUploadPreview

* Move media uploading to the MediaUploadPreviewScreen, add waiting indicators and error handling

* Add support for pasting and drag&dropping in media for upload

* Adopt new media picker source UI, remove developer flag

* Set minimum heights for timeline loadable images

* Fix invalid camera picker file names

* Fix flakey MediaUploadingPreprocessor image tests, improve gps metadata stripping

* UITests: Update existing screenshots and add new step for the room attachment picker

* Switch all github action runners to macos-13

* Cleanup enter key and paste message composer handlers
2023-05-04 16:09:29 +03:00
Alfonso Grillo
e9c07c9f8f
Contextual menu for rooms (#842)
* Add room contextual menu

* Add room context menu view actions

* Add navigation to room’s detail

* Show leave alert in HomeScreen

* Implement leave logic

* Refine leave navigation for iPad

* Optimize leave from homescreen

* Refactor roomSettings -> roomDetails

* Refactor room for id mock

* Add UTs

* Cleanup

* Fix alert presentation in RoomDetailsScreenViewModel

* Fix animation flag
2023-05-04 10:02:18 +00:00
Stefan Ceriu
86aebfb9ef Pass attachment bodies when loading media 2023-05-04 11:32:44 +03:00
Mauro
95492d7e10
Avoid race and duplication conditions between local and remote notifications (#848)
* added timestamp control of the local notification

* improved the code, and implemented the solution, just needs some testing

* sdk bump

* UserPreference init with initialValue instead of defaultValue

* pr suggestions

* changelog

* notifications sliding sync view added
2023-05-03 14:28:07 +00:00
Mauro
60c2692a26
SDK Bump to 1.0.58 and updated dependencies (#849)
* sdk bump and updated depdencies to the latest semantic version

* updated outdated dependencies
2023-05-03 10:04:57 +02:00
Velin92
8b181bdc7a Translations update 2023-05-02 09:52:38 +02:00
Mauro Romito
1cd351ff78 fix for missing image for groups in notifications 2023-04-28 16:42:29 +02:00
Mauro
ccccdce0fc
Notification Handler to handle notifications in foreground (#837)
* changed how the notifications are handled

* local notifications can be decrypted and shown!

* Improved the handling for the mock and for the normal messages

* Avatar images are also displayed

* pr ready, commented some code that is not supposed to be releaaed yet, adjusted some tests and added some source code in the targets

* fixing some swiftlint complaints and removed an unused function

* better swiftlint disable

* addressing PR comments
2023-04-28 12:36:16 +00:00
Stefan Ceriu
3fb0829b88 Fixes #687 - Incorrect link detection and handling 2023-04-28 14:11:21 +03:00
Doug
18766d5852
Use search field style from Compound. (#839) 2023-04-28 11:59:40 +01:00
Mauro
c96ccd0f26
SDK Updated to 1.0.57-alpha (#840)
* sdk bump

* fixing tests
2023-04-28 09:34:33 +02:00
Stefan Ceriu
ffa2644ed8 Fix glitches when loading the timeline: use locally generated stable identifiers for all possible timeline items 2023-04-27 17:10:25 +03:00
Doug
2146c71232 Add UnitTestsAppCoordinator. 2023-04-25 21:17:03 +03:00