diff --git a/keyserver/src/creators/account-creator.js b/keyserver/src/creators/account-creator.js --- a/keyserver/src/creators/account-creator.js +++ b/keyserver/src/creators/account-creator.js @@ -50,7 +50,10 @@ import { fetchOlmAccount } from '../updaters/olm-account-updater.js'; import { updateThread } from '../updaters/thread-updaters.js'; import { viewerAcknowledgmentUpdater } from '../updaters/viewer-acknowledgment-updater.js'; -import { thisKeyserverAdmin } from '../user/identity.js'; +import { + isAuthoritativeKeyserver, + thisKeyserverAdmin, +} from '../user/identity.js'; const { commbot } = bots; @@ -176,6 +179,11 @@ async function sendMessagesOnAccountCreation( viewer: Viewer, ): Promise { + const isAuthoritative = await isAuthoritativeKeyserver(); + if (!isAuthoritative) { + return []; + } + const admin = await thisKeyserverAdmin(); await updateThread(