Commit Graph

687 Commits

Author SHA1 Message Date
Stefan Ceriu
d59a80b93a Prevent the TimelineController from requesting a backpagination even though items are available on the TimelineProvider level. Manually populate the items subject in the TimelineProvider constructor. 2023-06-29 20:13:56 +03:00
Stefan Ceriu
59f977ac38 Fix build, switch missed staticString URL 2023-06-29 18:45:00 +03:00
Stefan Ceriu
7f8c32db32 Bump the RustSDK to v1.0.92-alpha 2023-06-29 18:01:46 +03:00
Ivan Enderlin
36a4f28a37 fix: Do not call fullRoom on all rooms.
`fullRoom` creates a `Timeline` for the room. Calling this method on all
rooms doesn't make the room list fast :-).

Needs https://github.com/matrix-org/matrix-rust-sdk/pull/2186 to be merged.
2023-06-29 18:01:46 +03:00
Mauro
66c91dde2a Editing a failed echo, just cancels and resends it (#1207)
* editing a failed message means cancelling and resending it

* changelog
2023-06-29 14:37:52 +00:00
Alfonso Grillo
104629b72f Conform URL to ExpressibleByStringLiteral (#1214) 2023-06-29 13:47:04 +00:00
Doug
4ed3dc1b93 Trim newlines from message previews. (#1208)
- Fixes a bug with replies where the message shows on the line after the sender's name.
2023-06-29 11:34:37 +01:00
Stefan Ceriu
924fd166b1 Fixes #954 - Implement media upload cancelling 2023-06-29 13:32:42 +03:00
Stefan Ceriu
ce86e4ad46 Stop running room proxy cleanup in a separate task 2023-06-29 13:31:43 +03:00
Alfonso Grillo
55d68348b3 Improve LocationRoomTimelineView layout (#1212)
* Improve LocationRoomTimelineView

* Cleanup
2023-06-29 10:22:43 +00:00
David Langley
098990390f Reaction summary and flow layout for reactions (#1158)
* Add reaction summary view

* Add avatars and display names and flowlayout for reactions

- Add avatars to summary view
- Add display names to summary view
- Add flow layout to reaction buttons as per designs(long press on  scolling buttons is difficult to achieve so prioritised this).

* Add and use SwiftUI-Flow for reaction layout.

* Correct Swift-Flow inclusion via xcodegen

* Remove own FlowLayout implementation and Fix unit tests

* Improve naming and correct spacing on summary view as per design.

* Fix safe area insets on summary view bottom sheet

* Scroll to selected reaction in the case that it is offscreen when the sheet is displayed.

* Add more reactions to UITests to ensure the new flow layout is displayed(wraps on to second line).

* Fix snapshot image.

* Address review comments.

* Use onLongPressGesture for reactions also to fix double actions bug and for consistency.

* Respect RTL languages.

* Fix unit test.
2023-06-29 10:53:44 +01:00
Alfonso Grillo
eb65619979 Open map from timeline (#1199)
* Add navigation to expaneded map

* Add MapLibreMapView.Options

* Add AppActivityView

* Add ShareToMapsAppActivity

* Add share sheet presentation

* Add localisations

* Cleanup

* Fix UT build errors

* Revert breaking change

* Fix UIView setup

* Add support for location’s description

* Show popover on iPad

* Restore assets

* More cleanup
2023-06-29 09:12:42 +00:00
Doug
2cd03a9e7e Remove asset (#1213)
Re-add asset
2023-06-29 09:47:17 +01:00
Stefan Ceriu
187eec780c Implement swipe to reply on timeline items (#1148) 2023-06-29 11:31:46 +03:00
Mauro
895f974249 Show Only Retry Decryption and View Source for Unencrypted messages (#1202)
* show only retryDecryption for unencrypted message

* fix
2023-06-28 15:57:19 +00:00
Doug
d334f3ce73 Update long press gesture animation. (#1195) 2023-06-28 16:06:43 +01:00
Mauro
26c24af743 Fix for flipped image notification placeholder on iPhone (#1200)
* fix

* better handling

* reverted wrong commit

* typo in changlog
2023-06-28 14:52:23 +00:00
Doug
3151c5688e Replace FilePreviewScreen with InteractiveQuickLook. (#1187)
* Replace FilePreviewScreen with InteractiveQuickLook.

- Allows full screen presentation.
- Allows dismiss gesture to work.
- Presentation looks much better on macOS.
2023-06-28 15:32:16 +01:00
Mauro
02f777534a Delivery status is displayed only for last message (#1193)
* checkmark only displays for the last message

* delivery status is now displayed only for last message

* changelog
2023-06-28 14:28:56 +00:00
Stefan Ceriu
09494c3aed Prevent the app from crashing when multiple virtual timelineStart items appear in the timeline 2023-06-28 15:33:07 +03:00
Alfonso Grillo
648a12ad1f Optimise inviters fetch using task group (#1191) 2023-06-28 14:04:43 +02:00
Flescio
838b7d8098 Send pin-drop location (#1179)
* add location sharing action in room, and open location sharing screen

* add pin location sharing

* fix asset, add tests for location viewModel, add send location request

* fix map zoom level, fix assets for location

* add feature flag for location sharing

* hide attribution button
2023-06-28 09:39:38 +00:00
Stefan Ceriu
59fe200d8b Implement all emoji text message boosting 2023-06-28 11:33:57 +03:00
Stefan Ceriu
abe1df2524 Removed unused swipe gesture (+3 squashed commits)
Squashed commits:
[d64bb3bb] Stop using the ServiceLocator directly in the ScreenTrackerViewModifier
[37c46ab9] Rename Analytics to AnalyticsService
[8852a371] #920 - Cleanup ServiceLocator usages
2023-06-28 11:33:41 +03:00
Doug
50f3ac0eeb Update strings and screenshots for waitlist screen. (#1183) 2023-06-28 09:16:00 +01:00
Mauro
c67e79c423 Filter out some actions for failed local echoes (#1184)
* done

* pr suggestion
2023-06-27 16:41:18 +00:00
Doug
09cccc6754 Fix missing user agent during login and the first session. (#1181) 2023-06-27 14:41:57 +00:00
David Langley
7e4afbaae6 Fix reaction hit area (#1178)
* Add workaround to stop the message long press steal touches from the reaction button

* put back newline
2023-06-27 13:02:23 +00:00
Mauro
ff8728b86c Placeholders added in push notifications (#1176)
* placeholders added in push notifications

* this code is a bit easier to read

* code improvement
2023-06-27 11:44:19 +00:00
Doug
b8ec1096ba Handle waiting list error. (#1165) 2023-06-26 18:26:20 +01:00
aringenbach
ec4a916951 Rename sendReaction as toggleReaction 2023-06-26 20:25:55 +03:00
Johannes Marbach
092e4db1a2 Render emote notifications like in the timeline (#1152)
Fixes: #1117
2023-06-26 16:33:46 +00:00
Mauro
e215f8bc9e SDK bump to 1.0.85-alpha and disable push rules filtering (#1162)
* sdk bump and disable push rules filtering

* changelog
2023-06-26 16:22:55 +03:00
Mauro
fe97ea3093 Handling cancelled as a sendingFailed case (#1161)
* handling cancelled as a sendingFailed case

* changelog
2023-06-26 10:33:15 +00:00
Velin92
20b56d5800 Translations update 2023-06-26 13:13:27 +03:00
Stefan Ceriu
4c45d8722c Reuse previously build room summaries for diffs that contain invalidations 2023-06-26 13:02:17 +03:00
David Langley
54a7e7acf0 Reaction highlights (#1145)
* Highlight own reactions

- Highlight own reactions on timeline and improve style.
- Highlight reactions on message bottom sheet only when it our own.

* Improve overlay background colours

* pin to new sdk version

* Remove the red used for debug.

* Fix padding, overlap and only display count if > 1.

- Fix reaction padding and overlap of reaction and bubble.
- Only display count if greater than 1.
- Return EmptyView for TimelineDeliveryStatus.cancelled.

* Fix colors as per design recommendations.

* Add Snapshot tests for reactions and documentation.

- Add UITests for the timeline including reactions.
- Add the reference snapshots.
- Add documentation on how to run snapshot tests and update the reference snapshots.

* Fix Package.resolved
2023-06-25 13:24:48 +01:00
Doug
3ccd8aab6a Fix asset folder structure. 2023-06-24 20:11:55 +01:00
Stefan Ceriu
2b660d48a7 Fix clientProxy isSyncing not taking into consideration the encryptionSyncLoop feature flag 2023-06-24 20:36:03 +03:00
Doug
cf410fd7e0 App polish part 5 (#1149)
- Set launch/splash screens to default background colour.
- Replace launch screen storyboard with info plist keys.
- Remove useless layout components in bubble styler.
- Fix lint error.
- Rename all assets.
- Update design of Analytics Prompt.
2023-06-23 17:10:37 +01:00
Alfonso Grillo
8a83e79e5f Update Matrix SDK to v1.0.84-alpha (#1147)
* Fix build errors

* Add sendLocation API

* Amend cancelled behavior
2023-06-23 15:14:38 +00:00
Mauro
7b46e86098 updated ui tests and deleted unused ones (#1143)
* updated ui tests and deleted unused ones

* fix keyboard missing on iPad

* fix keyboard missing

* code improvement

* improvement for user session screen

* readded some removed files
2023-06-23 13:18:44 +00:00
Alfonso Grillo
e7d11b8311 Render location events in the timeline (#1136)
* Start location integration in the timeline

* Add warning

* Add LocationRoomTimelineView

* Add GeoURI

* Refine LocationRoomTimelineView

* Refine LocationRoomTimelineView

* Add LocationRoomTimelineView previews

* Cleanup code

* Mock reply

* Add FF for location events

* Update project file

* Fix MapLibreStaticMapView placeholder

* Add MapTilerAttribution

* Add LocationPinView

* Fix layout

* Start reply rendering

* Refactor ReplyView.Icon

* Add localisations

* Fix reactions

* Amend GeoURI regex

* Add log

* Fix tests

* Attribution placement refactor

* Cleanup

* Replace NSRegularExpression with a regex

* Cleanup

* Update unit tests

* isMediaType -> shouldFillBubble
2023-06-23 12:49:35 +02:00
Doug
8e92d1121a App Polish number 4 (#1142)
* Add dedicated placeholder screen instead of using the splash screen.

* Reorder message actions.
2023-06-23 11:01:09 +01:00
Mauro
c77200c8f0 Keyboard is kept dismissed when dismissing the actions or the attachments menu (#1141)
* keyboard is kept dismissed

* no need for dispatch queue
2023-06-23 09:39:43 +00:00
Mauro
dba4060423 Two sync loop experimental solution to decrypt push notifications (#1082)
* Experimental two sync loop solution

* better logging

* improved the code and handled invite notifications display better

* improved invite notifications

* new exerimental branch

* new sync loop

* code updated

* code improvements

* code improvements

* fix typo

* code improvements

* removed some unused code and added a respawn

* fixing some NSE issues

* code improvements

* new version of the branch

* more logging

* running the nse process ONLY IF necessary

* finally works! made also the feature flag

* also the encryption value of the room list api will depend on the flag now

* changelog

* code improvements

* code improvement

* updated proj

* fixing some compilation error after the rebase

* opt-in for the encryption sync

* fix
2023-06-22 17:23:33 +00:00
Stefan Ceriu
241df9c157 Room list service (#1138)
* Adopt the new RoomListService

* Use client.roomListWithEncryption

* Store the roomList so that it doesn't get dropped and create problems on the rust side

* Use roomListService instead of old roomList client method

* Added back documentation removed by mistake

* Tweaks following code review, SDK bump
2023-06-22 19:59:32 +03:00
Mauro
28497a39ce sdk bump, last one for today I swear (#1134) 2023-06-22 14:51:42 +00:00
Doug
d865c3bc8a App polish part 3 (#1135)
- Add an animation to long press on messages.
- Make emojis bigger on the reactions picker screen.
- Remove quote menu action.
- Fix emoji picker handle overlapping focused search field.
- Update launch, splash and onboarding screens.
- Use elevation tokens in Forms.
- Move the cancel button on the Start Chat flow.
2023-06-22 14:37:47 +01:00
Stefan Ceriu
030b1b0bfa Various tweaks (#1129)
* Fixes #1121 - Hide the loading indicator after the logout task finishes

* Manually restart the sync only when entering the `error` state

* Use stopSync instead of the roomListService directly on client deinit

* Replace WeakClientProxyWrapper with callback based delegate

* Fix homescreen user avatar not automatically updating

* Replace default Build SDK profile with reldbg, which is fast but also doesn't crash

* Always show the loading indicator when the room list is not in a `running` state

* Implement delayed user indicator presentations through the normal API

* Fix the unit tests

* Replace UserIndicatorController delayedIndicators dictionary with a plain set
2023-06-22 15:04:20 +03:00