Page MenuHomePhabricator

[keyserver] Handle web version in hasMinCodeVersion
ClosedPublic

Authored by michal on May 17 2023, 5:25 AM.
Tags
None
Referenced Files
F3378478: D7854.id26794.diff
Wed, Nov 27, 10:50 AM
Unknown Object (File)
Sat, Nov 16, 11:02 AM
Unknown Object (File)
Sat, Nov 16, 8:13 AM
Unknown Object (File)
Fri, Nov 8, 10:41 AM
Unknown Object (File)
Mon, Nov 4, 1:20 PM
Unknown Object (File)
Mon, Nov 4, 1:20 PM
Unknown Object (File)
Mon, Nov 4, 1:20 PM
Unknown Object (File)
Sat, Nov 2, 2:30 PM
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