Fix fetching more notifications

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-05-03 15:59:36 +02:00
parent c2959f2137
commit a64bd537f4

View file

@ -243,6 +243,12 @@ const expandNotifications = ({ maxId }: Record<string, any> = {}, done: () => an
}
}
if (maxId?.includes('+')) {
const ids = maxId.split('+');
maxId = ids[ids.length - 1];
}
const params: Record<string, any> = {
max_id: maxId,
};