diff --git a/matrix/services/room/src/main/kotlin/app/dapk/st/matrix/room/RoomService.kt b/matrix/services/room/src/main/kotlin/app/dapk/st/matrix/room/RoomService.kt index 03a7dd9..41f36d1 100644 --- a/matrix/services/room/src/main/kotlin/app/dapk/st/matrix/room/RoomService.kt +++ b/matrix/services/room/src/main/kotlin/app/dapk/st/matrix/room/RoomService.kt @@ -30,7 +30,7 @@ interface RoomService : MatrixService { data class JoinedMember( val userId: UserId, - val displayName: String, + val displayName: String?, val avatarUrl: String?, ) diff --git a/matrix/services/room/src/main/kotlin/app/dapk/st/matrix/room/internal/DefaultRoomService.kt b/matrix/services/room/src/main/kotlin/app/dapk/st/matrix/room/internal/DefaultRoomService.kt index 977a233..aa33c60 100644 --- a/matrix/services/room/src/main/kotlin/app/dapk/st/matrix/room/internal/DefaultRoomService.kt +++ b/matrix/services/room/src/main/kotlin/app/dapk/st/matrix/room/internal/DefaultRoomService.kt @@ -131,6 +131,6 @@ internal data class JoinedMembersResponse( @Serializable internal data class ApiJoinedMember( - @SerialName("display_name") val displayName: String, + @SerialName("display_name") val displayName: String? = null, @SerialName("avatar_url") val avatarUrl: String? = null, ) \ No newline at end of file