From 7122d9e56785aa9fce78ddaf7996941bf032bea8 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 2 Sep 2019 01:50:53 -0700 Subject: [PATCH] Put uniqueBy back in sync --- src/Scylla/Sync.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Scylla/Sync.elm b/src/Scylla/Sync.elm index 21e6232..2ec933c 100644 --- a/src/Scylla/Sync.elm +++ b/src/Scylla/Sync.elm @@ -328,10 +328,10 @@ mergeEvents : List Event -> List Event -> List Event mergeEvents l1 l2 = l1 ++ l2 mergeStateEvents : List StateEvent -> List StateEvent -> List StateEvent -mergeStateEvents l1 l2 = l1 ++ l2 +mergeStateEvents l1 l2 = uniqueBy .eventId <| l1 ++ l2 mergeRoomEvents : List RoomEvent -> List RoomEvent -> List RoomEvent -mergeRoomEvents l1 l2 = l1 ++ l2 +mergeRoomEvents l1 l2 = uniqueBy .eventId <| l1 ++ l2 mergeStrippedStates : List StrippedState -> List StrippedState -> List StrippedState mergeStrippedStates l1 l2 = l1 ++ l2