GetTIme
This commit is contained in:
parent
b56e03fd2f
commit
9b2d2f4217
1 changed files with 1 additions and 1 deletions
|
|
@ -485,7 +485,7 @@ function isGroupStart(
|
||||||
if (newestMessage.author.id !== oldestMessage.author.id) return true;
|
if (newestMessage.author.id !== oldestMessage.author.id) return true;
|
||||||
|
|
||||||
const timeDifferenceInMinutes = Math.abs(
|
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;
|
return timeDifferenceInMinutes >= 5;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue