I'm using AngularJS ng-repeat to display a chat view with a history of multiple days. To make the chat easier to read I want to add headers when there is a pause of some hours between two messages. (Like you may know it from mobile messenger apps.)
I know this could be done by grouping them and I'm aware of groupBy:. However groupBy: only allows to group by some value of the object, but I need to group it by similar timestamps. (Like grouping dates together when delay between them is less then one hour.)
Is there a simple way to realize that?
 
     
    