fix: was logging the push but not the dump

pull/3083/head
William Grant 11 months ago
parent 6e3df83aed
commit c54b4d208e

@ -429,18 +429,15 @@ export class SwarmPolling {
hash: m.messageHash, hash: m.messageHash,
})); }));
await GenericWrapperActions.init('UserConfig', privateKeyEd25519, null);
if (window.sessionFeatureFlags.debug.debugLibsessionDumps) { if (window.sessionFeatureFlags.debug.debugLibsessionDumps) {
for (let dumpIndex = 0; dumpIndex < incomingConfigMessages.length; dumpIndex++) { window.log.info(
const element = incomingConfigMessages[dumpIndex]; `printDumpsForDebugging: before merge of UserConfig (should be empty):`,
window.log.info( StringUtils.toHex(await GenericWrapperActions.dump('UserConfig'))
`printDumpsForDebugging: toMerge of ${dumpIndex}:${element.hash}: ${StringUtils.toHex( );
element.data
)} `
);
}
} }
await GenericWrapperActions.init('UserConfig', privateKeyEd25519, null);
await GenericWrapperActions.merge('UserConfig', incomingConfigMessages); await GenericWrapperActions.merge('UserConfig', incomingConfigMessages);
if (window.sessionFeatureFlags.debug.debugLibsessionDumps) { if (window.sessionFeatureFlags.debug.debugLibsessionDumps) {

Loading…
Cancel
Save