From 9b2d2f4217dc0c0fc4e80f7fa38e67c9daa3308a Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:17:02 -0500 Subject: [PATCH] GetTIme --- .../messageLoggerEnhanced/components/LogsModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/equicordplugins/messageLoggerEnhanced/components/LogsModal.tsx b/src/equicordplugins/messageLoggerEnhanced/components/LogsModal.tsx index c7b76caf..35930700 100644 --- a/src/equicordplugins/messageLoggerEnhanced/components/LogsModal.tsx +++ b/src/equicordplugins/messageLoggerEnhanced/components/LogsModal.tsx @@ -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;