diff --git a/keyserver/src/responders/keys-responders.js b/keyserver/src/responders/keys-responders.js index 1050f4b29e..4cb9903432 100644 --- a/keyserver/src/responders/keys-responders.js +++ b/keyserver/src/responders/keys-responders.js @@ -16,7 +16,6 @@ import { ServerError } from 'lib/utils/errors.js'; import { tShape, tNull } from 'lib/utils/validation-utils.js'; import { fetchSessionPublicKeys } from '../fetchers/key-fetchers.js'; -import { verifyClientSupported } from '../session/version.js'; import type { Viewer } from '../session/viewer.js'; import { fetchCallUpdateOlmAccount } from '../updaters/olm-account-updater.js'; @@ -63,11 +62,7 @@ function retrieveSessionInitializationKeysSet( return { identityKeys, oneTimeKey, prekey, prekeySignature }; } -async function getOlmSessionInitializationDataResponder( - viewer: Viewer, -): Promise { - await verifyClientSupported(viewer); - +async function getOlmSessionInitializationDataResponder(): Promise { const { identityKeys: notificationsIdentityKeys, prekey: notificationsPrekey, diff --git a/keyserver/src/responders/user-responders.js b/keyserver/src/responders/user-responders.js index d13ad97674..055932e402 100644 --- a/keyserver/src/responders/user-responders.js +++ b/keyserver/src/responders/user-responders.js @@ -120,7 +120,6 @@ import { createNewUserCookie, setNewSession, } from '../session/cookies.js'; -import { verifyClientSupported } from '../session/version.js'; import type { Viewer } from '../session/viewer.js'; import { accountUpdater, @@ -176,9 +175,6 @@ async function passwordUpdateResponder( } async function sendVerificationEmailResponder(viewer: Viewer): Promise { - if (!viewer.isSocket) { - await verifyClientSupported(viewer, viewer.platformDetails); - } await checkAndSendVerificationEmail(viewer); } @@ -200,9 +196,6 @@ export const logOutResponseValidator: TInterface = }); async function logOutResponder(viewer: Viewer): Promise { - if (!viewer.isSocket) { - await verifyClientSupported(viewer, viewer.platformDetails); - } if (viewer.loggedIn) { const [anonymousViewerData] = await Promise.all([ createNewAnonymousCookie({