From 18b824d2346c15e16301a28a1d8c4bd31a3aa719 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Tue, 15 Feb 2022 16:37:27 +0400 Subject: [PATCH] Fix loading history when top message is deleted --- src/helpers/slicedArray.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/slicedArray.ts b/src/helpers/slicedArray.ts index e3ece7b2..dbec52db 100644 --- a/src/helpers/slicedArray.ts +++ b/src/helpers/slicedArray.ts @@ -88,7 +88,7 @@ export default class SlicedArray { } unsetEnd(side: SliceEnd) { - this.end ^= side; + this.end &= ~side; } splice(start: number, deleteCount: number, ...items: ItemType[]) {