Page MenuHomePhabricator

[keyserver] Handle web version in hasMinCodeVersion
ClosedPublic

Authored by michal on May 17 2023, 5:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 7:15 AM
Unknown Object (File)
Mon, Apr 22, 1:03 PM
Unknown Object (File)
Mon, Apr 22, 1:03 PM
Unknown Object (File)
Mon, Apr 22, 1:03 PM
Unknown Object (File)
Mon, Apr 22, 1:00 PM
Unknown Object (File)
Sat, Apr 6, 6:04 PM
Unknown Object (File)
Fri, Apr 5, 10:39 AM
Unknown Object (File)
Mar 3 2024, 2:27 AM
Subscribers

Details

Summary

Now that web will have a version we need to handle it in hasMinCodeVersion. It now takes two version, one for native and one for web. If either of them is absent we treat it like all versions of the respective platform are allowed.

Test Plan

yarn flow-all and check if web app works fine.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Do we still have places where we don't use hasMinCodeVersion function? Do we have to update these?

lib/shared/version-utils.js
13 ↗(On Diff #26614)

Isn't it simpler to use optionals directly?

This revision is now accepted and ready to land.May 19 2023, 1:25 AM

Do we still have places where we don't use hasMinCodeVersion function? Do we have to update these?

The only place I could find was when sending notifications in send.js. They are all separated by platform so there shouldn't be a conflict between web and native. The only place that could break is that we would be using the web version for sending notifs to the desktop, fix: D7903.

lib/shared/version-utils.js
13 ↗(On Diff #26614)

ashoat suggested $Shape on our 1-1