Skip to content

Commit

Permalink
🛠️
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jan 25, 2023
1 parent ab6c833 commit 77be7fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Push.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ public function flushPayloads(): void {
}

if (!empty($this->deletesToPush)) {
// Check for $id = 0 then only trigger delete all for that user
// Otherwise group by "app" (['spreed', 'talk', 'admin_notification_talk'] OR not!)
// And trigger each chunk per user
foreach ($this->deletesToPush as $id => $data) {
$this->pushDeleteToDevice($data['userId'], $id, $data['app']);
}
Expand Down

0 comments on commit 77be7fd

Please sign in to comment.