Fix incorrectly decoding state events in timeline

This commit is contained in:
Danila Fedorin 2019-09-14 21:01:51 -07:00
parent c3ed5c4cd1
commit c3c2036c69

View File

@ -38,8 +38,8 @@ type RoomEvent
roomEventDecoder : Decoder RoomEvent roomEventDecoder : Decoder RoomEvent
roomEventDecoder = oneOf roomEventDecoder = oneOf
[ Decode.map MessageRoomEvent messageEventDecoder [ Decode.map StateRoomEvent stateEventDecoder
, Decode.map StateRoomEvent stateEventDecoder , Decode.map MessageRoomEvent messageEventDecoder
] ]
type alias MessageEvent = type alias MessageEvent =