Render kick and ban reason in the timeline when available (#4642)

* Map the reason to RoomMembershipContent

* Create function to create RoomMembershipContent.

* Render reason for kick and ban state event.
This commit is contained in:
Benoit Marty
2025-04-30 18:13:53 +02:00
committed by GitHub
parent b4b93a64d6
commit e502eb1971
10 changed files with 164 additions and 78 deletions
@@ -70,7 +70,8 @@ data class UnableToDecryptContent(
data class RoomMembershipContent(
val userId: UserId,
val userDisplayName: String?,
val change: MembershipChange?
val change: MembershipChange?,
val reason: String?,
) : EventContent
data class ProfileChangeContent(