From a64bd537f44ed0d739bdfa397be577674de8783f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 3 May 2024 15:59:36 +0200 Subject: [PATCH] Fix fetching more notifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/actions/notifications.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/actions/notifications.ts b/src/actions/notifications.ts index 1fa8687aa0..f0ae162c83 100644 --- a/src/actions/notifications.ts +++ b/src/actions/notifications.ts @@ -243,6 +243,12 @@ const expandNotifications = ({ maxId }: Record = {}, done: () => an } } + if (maxId?.includes('+')) { + const ids = maxId.split('+'); + + maxId = ids[ids.length - 1]; + } + const params: Record = { max_id: maxId, };