Fix incorrectly decoding state events in timeline
This commit is contained in:
parent
c3ed5c4cd1
commit
c3c2036c69
|
@ -38,8 +38,8 @@ type RoomEvent
|
|||
|
||||
roomEventDecoder : Decoder RoomEvent
|
||||
roomEventDecoder = oneOf
|
||||
[ Decode.map MessageRoomEvent messageEventDecoder
|
||||
, Decode.map StateRoomEvent stateEventDecoder
|
||||
[ Decode.map StateRoomEvent stateEventDecoder
|
||||
, Decode.map MessageRoomEvent messageEventDecoder
|
||||
]
|
||||
|
||||
type alias MessageEvent =
|
||||
|
|
Loading…
Reference in New Issue
Block a user