Page MenuHomePhabricator

[keyserver] Stop returning set of `deviceToken`s in `rescindPushNotifs(...)`
ClosedPublic

Authored by atul on Nov 10 2022, 1:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 11:50 PM
Unknown Object (File)
Sun, Nov 3, 11:50 PM
Unknown Object (File)
Sun, Nov 3, 11:50 PM
Unknown Object (File)
Sun, Nov 3, 11:40 PM
Unknown Object (File)
Sat, Nov 2, 10:12 PM
Unknown Object (File)
Oct 6 2024, 4:12 PM
Unknown Object (File)
Oct 6 2024, 4:12 PM
Unknown Object (File)
Oct 6 2024, 4:12 PM
Subscribers

Details

Summary

We were previously using the set of deviceTokens returned by rescindPushNotifs(...) in rescindAndUpdateBadgeCounts to skip updateBadgeCount(...) for devices that had notifications rescinded. See D5606 for context.

Basically, we don't need the set of deviceTokens in rescindAndUpdateBadgeCounts and it isn't used anywhere else so it can be removed.


Depends on D5606

Test Plan

Looked at other usages of rescindPushNotifs(...) and the return value was never used:

2c15a2.png (246×1 px, 77 KB)

2cb525.png (174×930 px, 38 KB)

797a5e.png (728×1 px, 162 KB)

e52dda.png (700×1 px, 167 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Nov 10 2022, 1:34 PM
atul edited the test plan for this revision. (Show Details)

Probably should put this in a stack with the other diff on Phabricator, so it's clear to reviewers that it won't break anything

This revision is now accepted and ready to land.Nov 10 2022, 1:44 PM

Probably should put this in a stack with the other diff on Phabricator, so it's clear to reviewers that it won't break anything

Ah yeah good point sorry, just updated summary