Merge pull request #17484 from nextcloud/bugfix/activity-last-timestamp-merged

Always use the latest timestamp for merged activities
This commit is contained in:
Roeland Jago Douma 2019-10-10 20:30:16 +02:00 committed by GitHub
commit 1e8f063aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ class EventMerger implements IEventMerger {
$event->setRichSubject($newSubject, $parameters)
->setParsedSubject($parsedSubject)
->setChildEvent($previousEvent);
->setChildEvent($previousEvent)
->setTimestamp(max($event->getTimestamp(), $previousEvent->getTimestamp()));
} catch (\UnexpectedValueException $e) {
return $event;
}