Page MenuHomePhabricator

D9146.diff
No OneTemporary

D9146.diff

diff --git a/keyserver/src/utils/validation-utils.js b/keyserver/src/utils/validation-utils.js
--- a/keyserver/src/utils/validation-utils.js
+++ b/keyserver/src/utils/validation-utils.js
@@ -31,9 +31,8 @@
viewer: Viewer,
inputValidator: TType<T>,
input: mixed,
- ignoreViewerVersion?: boolean,
): Promise<T> {
- if (!ignoreViewerVersion && !viewer.isSocket) {
+ if (!viewer.isSocket) {
await checkClientSupported(viewer, inputValidator, input);
}
const convertedInput = checkInputValidator(inputValidator, input);
@@ -42,8 +41,7 @@
hasMinStateVersion(viewer.platformDetails, {
native: 43,
web: 3,
- }) ||
- ignoreViewerVersion
+ })
) {
try {
return convertClientIDsToServerIDs(
@@ -63,7 +61,6 @@
platformDetails: ?PlatformDetails,
outputValidator: TType<T>,
data: T,
- alwaysConvertSchema?: boolean,
): T {
if (!outputValidator.is(data)) {
console.trace(
@@ -77,8 +74,7 @@
hasMinStateVersion(platformDetails, {
native: 43,
web: 3,
- }) ||
- alwaysConvertSchema
+ })
) {
return convertServerIDsToClientIDs(
ashoatKeyserverID,

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 7:09 PM (8 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2700857
Default Alt Text
D9146.diff (1 KB)

Event Timeline