This commit is contained in:
thororen1234 2024-11-18 22:17:02 -05:00
parent b56e03fd2f
commit 9b2d2f4217

View file

@ -485,7 +485,7 @@ function isGroupStart(
if (newestMessage.author.id !== oldestMessage.author.id) return true;
const timeDifferenceInMinutes = Math.abs(
(new Date(newestMessage.timestamp).getTime() - new Date(oldestMessage.timestamp).getTime()) / (1000 * 60)
(new Date(newestMessage.timestamp)?.getTime() - new Date(oldestMessage.timestamp)?.getTime()) / (1000 * 60)
);
return timeDifferenceInMinutes >= 5;