Skip to content

Commit

Permalink
fix: serialization of invite events (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
ex0ns committed Sep 19, 2023
1 parent 33f55be commit 1aee232
Show file tree
Hide file tree
Showing 2 changed files with 227 additions and 172 deletions.
2 changes: 1 addition & 1 deletion core/src/com/bot4s/zmatrix/models/Rooms.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final case class Rooms(
final case class JoinedRoom(timeline: RoomEventTimeline)
final case class RoomEventTimeline(events: List[RoomEvent], limited: Boolean)

final case class InvitedRoom(inviteState: InviteState)
final case class InvitedRoom(@jsonField("invite_state") inviteState: InviteState)
final case class InviteState(events: List[InviteEvent])

object Rooms {
Expand Down
Loading

0 comments on commit 1aee232

Please sign in to comment.