Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Allow setting more state events from CreateRoomParameters #4631

Closed
ganfra opened this issue Feb 5, 2025 · 0 comments · Fixed by #4682
Closed

[Task] Allow setting more state events from CreateRoomParameters #4631

ganfra opened this issue Feb 5, 2025 · 0 comments · Fixed by #4682
Assignees

Comments

@ganfra
Copy link
Contributor

ganfra commented Feb 5, 2025

When creating a room, we have a struct to define all the parameters :

data class CreateRoomParameters (
    var `name`: kotlin.String?, 
    var `topic`: kotlin.String? = null, 
    var `isEncrypted`: kotlin.Boolean, 
    var `isDirect`: kotlin.Boolean = false, 
    var `visibility`: RoomVisibility, 
    var `preset`: RoomPreset, 
    var `invite`: List<kotlin.String>? = null, 
    var `avatar`: kotlin.String? = null, 
    var `powerLevelContentOverride`: PowerLevels? = null, 
    var `joinRuleOverride`: JoinRule? = null, 
    var `canonicalAlias`: kotlin.String? = null
) 

Following the spec https://spec.matrix.org/v1.10/client-server-api/#post_matrixclientv3createroom we should be able to give any state events.

In our case, we'd like to allow overriding history_visibility state.

2 solutions :

  • allow to give any state event, but this will need to expose all the StateEvent from Ruma somehow...
  • offer a new historyVisibilityOverride as the joinRuleOverride
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants