diff --git a/preload.js b/preload.js index 2f250136d..24757e0d0 100644 --- a/preload.js +++ b/preload.js @@ -62,6 +62,7 @@ window.lokiFeatureFlags = { useFileOnionRequestsV2: true, // more compact encoding of files in response onionRequestHops: 3, useRequestEncryptionKeyPair: false, + padOutgoingAttachments: false, }; if ( diff --git a/ts/components/UserDetailsDialog.tsx b/ts/components/UserDetailsDialog.tsx index 70e4e0301..70276c53d 100644 --- a/ts/components/UserDetailsDialog.tsx +++ b/ts/components/UserDetailsDialog.tsx @@ -64,7 +64,7 @@ export class UserDetailsDialog extends React.Component { private renderAvatar() { const { avatarPath, pubkey, profileName } = this.props; const size = this.state.isEnlargedImageShown ? 300 : 80; - const userName = name || profileName || pubkey; + const userName = profileName || pubkey; return ( = (() => PromiseLike) | (() => ResultType); // TODO: This needs to replace js/modules/job_queue.js export class JobQueue { - private pending: Promise = Promise.resolve(); + private pending?: Promise = Promise.resolve(); private readonly jobs: Map> = new Map(); public has(id: string): boolean { diff --git a/ts/window.d.ts b/ts/window.d.ts index ea0eb1920..e3a1f6e1f 100644 --- a/ts/window.d.ts +++ b/ts/window.d.ts @@ -62,6 +62,7 @@ declare global { useFileOnionRequestsV2: boolean; onionRequestHops: number; useRequestEncryptionKeyPair: boolean; + padOutgoingAttachments: boolean; }; lokiFileServerAPI: LokiFileServerInstance; lokiMessageAPI: LokiMessageInterface;