diff --git a/ts/session/profile_manager/ProfileManager.ts b/ts/session/profile_manager/ProfileManager.ts index d0fb517e0..a94f42185 100644 --- a/ts/session/profile_manager/ProfileManager.ts +++ b/ts/session/profile_manager/ProfileManager.ts @@ -100,8 +100,10 @@ export async function updateOurProfileDisplayName(newName: string, onboarding?: if (onboarding) { try { - // const tempKeyPair = generateFakeECKeyPair(); - await UserConfigWrapperActions.init(new Uint8Array(), null); + // create a temp user config wrapper to test the display name with libsession + const privKey = new Uint8Array(64); + crypto.getRandomValues(privKey); + await UserConfigWrapperActions.init(privKey, null); const userInfoName = await UserConfigWrapperActions.setUserInfo( cleanName, CONVERSATION_PRIORITIES.default,