Commit Graph

2457 Commits

Author SHA1 Message Date
Doug
940801f400 Add support for joining rooms from a space. (#4501)
* Add support for joining rooms from a space.

Doesn't yet handle the Join button 🤔

* Handle the join button for both rooms and spaces.

Also refactor more instances of spaceRoom to spaceRoomProxy.
2025-09-11 16:41:19 +01:00
Doug
f135c0a622 Await user session migrations rather than launching a task. (#4502)
Fixes a bug where they would be run *after* startSync had been called, and expiring the sessions stopped the sync.
2025-09-11 12:05:01 +01:00
Copilot
e2bd3edee7 Add intent system to widget URL creation. (#4427)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pixlwave <6060466+pixlwave@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2025-09-11 10:03:15 +01:00
Stefan Ceriu
05212ffff6 Closes #4477 - Fix stripping location data away from raw images when processing them for upload 2025-09-10 15:28:58 +03:00
Stefan Ceriu
791f9f5a43 Rename the formatted body text snapshots and regenerate them 2025-09-10 14:52:00 +03:00
Stefan Ceriu
8e257b40c5 Preserve the formatting of parentless text nodes 2025-09-10 14:52:00 +03:00
Stefan Ceriu
7d59589892 Automatically add insert a new line after headers 2025-09-10 14:52:00 +03:00
Stefan Ceriu
59eb7dd74c Fix the default point size used when applying symbolic traits. 2025-09-09 17:17:40 +01:00
Stefan Ceriu
94a2b86283 Add proper separated blockquotes fixtures and fix the tests. 2025-09-09 17:17:40 +01:00
Stefan Ceriu
9bbff69c69 Mark code blocks with a special attribute and strip away links from them. 2025-09-09 17:17:40 +01:00
Stefan Ceriu
69894ece62 Limit H1, H2 to the H3 point size. 2025-09-09 17:17:40 +01:00
Stefan Ceriu
dead40d2c4 Invalidate caches on both attributed string builders at the same time 2025-09-09 17:17:40 +01:00
Stefan Ceriu
b90d4b6618 Adapt old AttributedStringBuilder tests to the new version and update the HTML fixtures 2025-09-09 17:17:40 +01:00
Stefan Ceriu
97c5b5fb49 Correctly identify MSC4286 span values. 2025-09-09 17:17:40 +01:00
Stefan Ceriu
216d16ddba Add link attributes as URL values instead of String ones 2025-09-09 17:17:40 +01:00
Stefan Ceriu
efbf456067 Remove matrix identifier attributes from code blocks 2025-09-09 17:17:40 +01:00
Stefan Ceriu
afbcd94a5f Extract HTML fixtures out of the FormattedBoxyText previews. 2025-09-09 17:17:40 +01:00
Stefan Ceriu
d52ee31c5b Use the correct key when caching attributed string builder results. 2025-09-09 17:17:40 +01:00
Stefan Ceriu
9796a9d928 Add support for ordered and unordered lists. 2025-09-09 17:17:40 +01:00
Stefan Ceriu
d28d25f3d1 Overhaul the FormattedBodyText previews 2025-09-09 17:17:40 +01:00
Stefan Ceriu
4ac805be19 Add an initial version of the V2 AttributedStringBuilder 2025-09-09 17:17:40 +01:00
Stefan Ceriu
23a5d50067 Add a V2 version of the AttributedStringBuilder as a verbatim copy of the original one (for now) 2025-09-09 17:17:40 +01:00
Stefan Ceriu
bd60a50a7e Move the initial attributed string builder to its own file 2025-09-09 17:17:40 +01:00
Stefan Ceriu
e8cecd448d Rename detectPermalinks to addMatrixEntityPermalinkAttributesTo and move code around 2025-09-09 17:17:40 +01:00
Stefan Ceriu
f08cd6d2a3 Remove the crash simulation option from the developer tools 2025-09-09 17:17:40 +01:00
Stefan Ceriu
e57a4ef52a Add next gen HTML parser feature flag 2025-09-09 17:17:40 +01:00
Doug
c6f3de8be7 Add a migration to expire sync sessions so that m.space.* state is up to date. (#4482) 2025-09-09 15:35:32 +01:00
Doug
dd387a7aa2 Revert weak media provider (#4483)
* Revert "Address the real lifetime issue of the SDK's `Client` by making `Context.mediaProvider` weak. (#4466)"

This reverts commit b9d1558216.

* Better docs.
2025-09-08 17:48:58 +01:00
Doug
2b65844ac6 Use the SDK's offline detection everywhere (except for restarting the sync loop). (#4472)
* Use the SDK's offline state to drive the offline indicator.

* Only use network reachability for restarting the sync loop, use the homeserver reachability for requests.

* Add a separate indicator to distinguish when the server is unreachable but the device is online.
2025-09-08 12:18:02 +00:00
Doug
e107fdc4c0 Add the sheet for expanding the space description. (#4475)
* Start working on space description

* Hook up presentation of the SpaceScreenDescriptionView.

* Make the SpaceScreenDescriptionView more accessible and apply a background colour.

* Refactor and move sheet presentation to the header view.

---------

Co-authored-by: amshak <85162587+amshakal@users.noreply.github.com>
2025-09-08 12:07:08 +01:00
Doug
eaf14bfd87 Fix proxies by reverting the change that introduced schemes. (#4481)
This partially reverts commit 83fd64fe0a.
2025-09-08 12:03:41 +01:00
ElementRobot
700e07fc5b Translations update (#4479) 2025-09-08 08:41:32 +01:00
Doug
b9d1558216 Address the real lifetime issue of the SDK's Client by making Context.mediaProvider weak. (#4466)
This reverts commit 8d069fb74c.
2025-09-05 17:18:14 +00:00
Mauro Romito
e63ec9c901 fix 2025-09-05 15:35:35 +02:00
Mauro
18eb226b64 MediaTimelinePreviewDetails can now be opened by long pressing in the media timeline (#4474)
* presenting media actions from the media timeline

* implemented view in timeline and fixed an issue that made dark mode being when trying to delete the file

* pr suggestions
2025-09-05 15:30:36 +02:00
Mauro Romito
3d85f3de8c increase line limit for name in FileRoomTimelineView 2025-09-05 15:07:27 +02:00
Mauro Romito
436d43ddfa hardcoded the timeout of 1 minute 2025-09-04 18:38:51 +02:00
Doug
039084966a Allow joined rooms to be pushed within a space. (#4460)
* Allow joined rooms to be pushed within a space.

* Push a room in the space flow tests.

Also fixes some snapshots stale snapshots.

* Show the selected space/room within a space and set a custom title view.
2025-09-03 17:48:49 +01:00
Doug
8d069fb74c Workaround: Hold a weak reference to the SDK's Client in MediaLoader so it can be released when clearing the cache. 2025-09-03 17:39:16 +01:00
Doug
7ce8b29b03 Remove the unused media provider from the PillView. 2025-09-03 17:39:16 +01:00
Doug
d642368800 Stop storing the openURL action to fix a retain cycle.
Uses the existing timeline action instead.
2025-09-03 17:39:16 +01:00
Doug
472c49a94e Fix a retain cycle on RoomDetailsScreenViewModel.
This was causing the UserSession/Client to stay alive after clearing the cache.
2025-09-03 17:39:16 +01:00
Doug
02dce32487 Fix a bug where invites would be hidden when the Low Priority feature is enabled. (#4461) 2025-09-03 17:15:25 +01:00
Doug
26eda3ccfd Move call presentation from the chats flow into the user session flow. (#4459) 2025-09-03 17:01:07 +01:00
Doug
811f02962d Use the Emoji/Map/Poll view models. (#4458)
* Toggle emojis in the EmojiPickerScreenViewModel.

* Send locations in the StaticLocationScreen.

* Send polls in the PollFormScreen.
2025-09-03 16:52:28 +01:00
Doug
34088f8423 Tweaks discovered when using Compound overrides. (#4456)
- Fixes a bug where gradients wouldn't use the latest tokens after first use.
- Makes the bloom aware of colour overrides (and discovers a bug with dark mode).
- Decouples HomeScreenCell from the HomeScreenViewModel.Context (so it can be previewed with colour overrides).
2025-09-02 09:40:03 +01:00
Mauro Romito
0320d171e8 accessibility improvements + tests refinement 2025-09-02 10:19:35 +02:00
Doug
b731c9f2d0 Use the SDK's SpaceService, SpaceRoom and SpaceRoomList. (#4455) 2025-09-01 15:22:37 +01:00
ElementRobot
49ab757551 Translations update 2025-09-01 11:07:35 +02:00
Doug
cda1872b8f Use the UserSession for VoiceMessageMediaManager injection too. 2025-08-27 18:13:03 +01:00