From c3ed5c4cd1a61fb2dfb1540e80576bd5bdf5b23c Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 12 Sep 2019 20:32:59 -0700 Subject: [PATCH] Ignore nextBatch from timeline --- src/Scylla/Room.elm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Scylla/Room.elm b/src/Scylla/Room.elm index 2331320..2855359 100644 --- a/src/Scylla/Room.elm +++ b/src/Scylla/Room.elm @@ -86,7 +86,10 @@ changeRoomData jr rd = , messages = changeTimeline jr rd.messages , ephemeral = changeEphemeral jr rd.ephemeral , unreadNotifications = changeNotifications jr rd.unreadNotifications - , prevHistoryBatch = Maybe.andThen .prevBatch jr.timeline + , prevHistoryBatch = + case rd.prevHistoryBatch of + Nothing -> Maybe.andThen .prevBatch jr.timeline + Just _ -> rd.prevHistoryBatch } updateRoomData : JoinedRoom -> Maybe RoomData -> Maybe RoomData