Skip to content

Instantly share code, notes, and snippets.

@vdhanan
Created February 1, 2024 05:15
Show Gist options
  • Save vdhanan/5949c0a4f0501d38a953774f81328916 to your computer and use it in GitHub Desktop.
Save vdhanan/5949c0a4f0501d38a953774f81328916 to your computer and use it in GitHub Desktop.
varun@varuns-MacBook-Pro keyserver % git diff
diff --git a/keyserver/src/keyserver.js b/keyserver/src/keyserver.js
index 4b1e116ab..a603cdfaf 100644
--- a/keyserver/src/keyserver.js
+++ b/keyserver/src/keyserver.js
@@ -51,10 +51,13 @@ import {
getWebAppURLFacts,
getWebAppCorsConfig,
} from './utils/urls.js';
+import { versionResponder } from './responders/version-responders.js';
const shouldDisplayQRCodeInTerminal = false;
void (async () => {
+ const versionResponse = await versionResponder();
+ console.log(versionResponse);
const [webAppCorsConfig] = await Promise.all([
getWebAppCorsConfig(),
olm.init(),
diff --git a/lib/utils/olm-utils.js b/lib/utils/olm-utils.js
index 611ea34eb..5d9f42133 100644
--- a/lib/utils/olm-utils.js
+++ b/lib/utils/olm-utils.js
@@ -76,6 +76,7 @@ function getAccountPrekeysSet(account: OlmAccount): {
}
function retrieveAccountKeysSet(account: OlmAccount): AccountKeysSet {
+ throw new Error('invalid_prekey');
const identityKeys = account.identity_keys();
validateAccountPrekey(account);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment