diff --git a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after launch-actual.png b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after launch-actual.png index 83b1d66d66..42e5aa5a2d 100644 Binary files a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after launch-actual.png and b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after launch-actual.png differ diff --git a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after pagedown-actual.png b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after pagedown-actual.png index 2400c956ae..d03ed08551 100644 Binary files a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after pagedown-actual.png and b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after pagedown-actual.png differ diff --git a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after pageup-actual.png b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after pageup-actual.png index 103b8954a9..10e695f571 100644 Binary files a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after pageup-actual.png and b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/after pageup-actual.png differ diff --git a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/message input words wrapping-actual.png b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/message input words wrapping-actual.png index e0b9cf3eeb..9d672a45b9 100644 Binary files a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/message input words wrapping-actual.png and b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/message input words wrapping-actual.png differ diff --git a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the middle-actual.png b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the middle-actual.png index 674884e446..b7e3a753d8 100644 Binary files a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the middle-actual.png and b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the middle-actual.png differ diff --git a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the top-actual.png b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the top-actual.png index b53f875f55..90a232569c 100644 Binary files a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the top-actual.png and b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the top-actual.png differ diff --git a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after enter-actual.png b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after enter-actual.png index 84cba05b67..45f760006e 100644 Binary files a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after enter-actual.png and b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after enter-actual.png differ diff --git a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after scroll-actual.png b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after scroll-actual.png index 3f2a0ac420..bdd55edf3f 100644 Binary files a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after scroll-actual.png and b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after scroll-actual.png differ diff --git a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after top scroll-actual.png b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after top scroll-actual.png index 462f147876..06d4c61a4b 100644 Binary files a/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after top scroll-actual.png and b/packages/desktop/cypress/snapshots/base-local/src/renderer/components/Channel/Channel.regression.cy.tsx/send after top scroll-actual.png differ diff --git a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after launch-base.png b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after launch-base.png index 83b1d66d66..42e5aa5a2d 100644 Binary files a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after launch-base.png and b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after launch-base.png differ diff --git a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after pagedown-base.png b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after pagedown-base.png index 2400c956ae..d03ed08551 100644 Binary files a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after pagedown-base.png and b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after pagedown-base.png differ diff --git a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after pageup-base.png b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after pageup-base.png index 103b8954a9..10e695f571 100644 Binary files a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after pageup-base.png and b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/after pageup-base.png differ diff --git a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/message input words wrapping-base.png b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/message input words wrapping-base.png index e0b9cf3eeb..9d672a45b9 100644 Binary files a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/message input words wrapping-base.png and b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/message input words wrapping-base.png differ diff --git a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the middle-base.png b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the middle-base.png index 674884e446..b7e3a753d8 100644 Binary files a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the middle-base.png and b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the middle-base.png differ diff --git a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the top-base.png b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the top-base.png index b53f875f55..90a232569c 100644 Binary files a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the top-base.png and b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/scroll to the top-base.png differ diff --git a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after enter-base.png b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after enter-base.png index 84cba05b67..45f760006e 100644 Binary files a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after enter-base.png and b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after enter-base.png differ diff --git a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after scroll-base.png b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after scroll-base.png index 3f2a0ac420..bdd55edf3f 100644 Binary files a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after scroll-base.png and b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after scroll-base.png differ diff --git a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after top scroll-base.png b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after top scroll-base.png index 462f147876..06d4c61a4b 100644 Binary files a/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after top scroll-base.png and b/packages/desktop/cypress/snapshots/base/src/renderer/components/Channel/Channel.regression.cy.tsx/send after top scroll-base.png differ diff --git a/packages/desktop/src/renderer/components/Channel/File/FileComponent/FileComponent.stories.tsx b/packages/desktop/src/renderer/components/Channel/File/FileComponent/FileComponent.stories.tsx index 55646a7c61..94407747eb 100644 --- a/packages/desktop/src/renderer/components/Channel/File/FileComponent/FileComponent.stories.tsx +++ b/packages/desktop/src/renderer/components/Channel/File/FileComponent/FileComponent.stories.tsx @@ -26,7 +26,7 @@ export const Completed = Template.bind({}) export const Malicious = Template.bind({}) const mid = '32' -const cid = '12D3KooWSYQf8zzr5rYnUdLxYyLzHruQHPaMssja1ADifGAcN3qY' +const cid: string = 'bafybeias7om3oq2qdbmcniflurs676cmuis7cnhczqx623lwesi2fzmwie' const args: FileComponentProps = { message: { @@ -65,9 +65,8 @@ Uploading.args = { ...args, message: { ...args.message, - // @ts-expect-error media: { - ...args.message.media, + ...args.message.media!, size: undefined, }, }, diff --git a/packages/logger/src/index.ts b/packages/logger/src/index.ts index c32f12c0d9..5e44becab3 100644 --- a/packages/logger/src/index.ts +++ b/packages/logger/src/index.ts @@ -1,7 +1,6 @@ import debug from 'debug' import { Console } from 'console' import { DateTime } from 'luxon' -import { isUint8Array } from 'util/types' import { ANY_KEY, findAllByKeyAndReplace } from './utils' @@ -316,7 +315,7 @@ export class QuietLogger { return (value as bigint).toString() } else if (value != null && (value.toV1 != null || value.toV0 != null)) { return value.toString() - } else if (value != null && isUint8Array(value)) { + } else if (value != null && value instanceof Uint8Array) { return Buffer.from(value).toString('base64') }