fix: fix updateOurProfileDisplayName breaking tests

don't use testing functions to generate a temp secret key rather do it manually
pull/3083/head
yougotwill 1 year ago
parent 3bd0f2e9cc
commit 6f2947e5aa

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

Loading…
Cancel
Save