Commit graph

9 commits

Author SHA1 Message Date
Jorge Martin Espinosa
63f24f0ae1 Add special flow for leaving a space as the last owner (#6112)
* When the user is in a v12 room, use different UI to select the last owner when leaving

- Add `LeaveSpaceRoom.areCreatorsPrivileged` to detect when this is happening.
- Import new strings.
- Build the new UI.
- Attach it to a change member roles screen navigation.

* Don't display the `isLastOwner` UI if the user is the only joined one in the room

* Rename `LeaveSpaceState.isLastOwner` to `.needsOwnerChange`. This way, it's easier to understand the difference with the passed `LeaveSpaceRoom.isLastOwner` value

* Add a test for the new check of user not being the last joined member

* Fix paddings in `LeaveSpaceView`

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2026-01-30 09:10:00 +00:00
ElementBot
b731d9a4a3 Sync Strings from Localazy (#6085)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-01-26 12:06:38 +01:00
ganfra
c03e052da4 Sync strings 2026-01-21 19:49:47 +01:00
ganfra
834a4ae2a7 Add proper localization for space room removal UI 2026-01-15 12:14:08 +01:00
ganfra
2d8f491cfd feature(space) : update some strings 2025-10-31 15:01:03 +01:00
Benoit Marty
c36577889d Leave space: use the SDK API. 2025-10-02 17:26:02 +02:00
Benoit Marty
4b641dbe1a Do not use plurals in this case since it can lead to lint issues since there is no %d in the value for one and this triggers a warning in some languages. 2025-09-29 14:43:16 +02:00
Benoit Marty
4b60475821 Add the (Admin) info. 2025-09-26 14:14:02 +02:00
Benoit Marty
bc465d724a Leave space - Add screen to leave a space. 2025-09-26 14:14:00 +02:00