From a59014475b0c2dfba156a781f3f17d30a8b0c434 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sun, 2 Jun 2019 18:15:08 +0200 Subject: [PATCH] also swap logic of setter --- src/matrix/room/timeline/entries/FragmentBoundaryEntry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/room/timeline/entries/FragmentBoundaryEntry.js b/src/matrix/room/timeline/entries/FragmentBoundaryEntry.js index 83993315..7af089f9 100644 --- a/src/matrix/room/timeline/entries/FragmentBoundaryEntry.js +++ b/src/matrix/room/timeline/entries/FragmentBoundaryEntry.js @@ -55,9 +55,9 @@ export default class FragmentBoundaryEntry extends BaseEntry { set token(token) { if (this.started) { - this.fragment.nextToken = token; - } else { this.fragment.previousToken = token; + } else { + this.fragment.nextToken = token; } }