Page MenuHomePhabricator

[keyserver] Use Platform instead of a DeviceType for sending notifs
ClosedPublic

Authored by michal on Feb 21 2023, 3:55 AM.
Tags
None
Referenced Files
F3509412: D6813.diff
Sat, Dec 21, 4:29 AM
Unknown Object (File)
Sun, Dec 15, 7:26 PM
Unknown Object (File)
Nov 6 2024, 2:29 AM
Unknown Object (File)
Oct 18 2024, 5:06 AM
Unknown Object (File)
Oct 18 2024, 5:06 AM
Unknown Object (File)
Oct 18 2024, 5:06 AM
Unknown Object (File)
Oct 14 2024, 8:04 AM
Unknown Object (File)
Oct 14 2024, 8:04 AM
Subscribers

Details

Summary

We want to be able to send web notifications but currently send.js is typed using DeviceType which doesn't include web. This diff changes it to use the Platform type and changes some names to fit better. There should be no behaviour changes introduced in this diff.

Test Plan

Create a new account on iOS and check if notifications still work.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

One place where the names aren't changed are the Delivery objects which contain a deviceType field that after this diff will contain values from Platform. But it's saved inside the database as json and we would have to support both deviceType field (for older notifications) and platform fields (for newer notifications) when rescinding notifications so I'm not sure if it's worth it.

This revision is now accepted and ready to land.Feb 21 2023, 6:36 AM