From c3c2036c6967edbec67f440a3727c29543ce2da7 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 14 Sep 2019 21:01:51 -0700 Subject: [PATCH] Fix incorrectly decoding state events in timeline --- src/Scylla/Sync/Events.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Scylla/Sync/Events.elm b/src/Scylla/Sync/Events.elm index a17dff8..a5feb19 100644 --- a/src/Scylla/Sync/Events.elm +++ b/src/Scylla/Sync/Events.elm @@ -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 =