diff --git a/stylesheets/components/Lightbox.scss b/stylesheets/components/Lightbox.scss index 3e9f9093b8d..6112bc23954 100644 --- a/stylesheets/components/Lightbox.scss +++ b/stylesheets/components/Lightbox.scss @@ -26,7 +26,7 @@ display: flex; flex-direction: column; flex-grow: 1; - // To ensure that a large image doesnt overflow the flex layout + // To ensure that a large image doesn't overflow the flex layout min-height: 50px; outline: none; } diff --git a/ts/components/BetterAvatar.tsx b/ts/components/BetterAvatar.tsx index 43dc1a28025..6157322a59f 100644 --- a/ts/components/BetterAvatar.tsx +++ b/ts/components/BetterAvatar.tsx @@ -95,7 +95,7 @@ export const BetterAvatar = ({ style={{ backgroundImage: avatarURL ? `url(${avatarURL})` : undefined, backgroundSize: size, - // +8 so that the size is the acutal size we want, 8 is the invisible + // +8 so that the size is the actual size we want, 8 is the invisible // padding around the bubble to make room for the selection border height: size + 8, width: size + 8, diff --git a/ts/components/LeftPane.tsx b/ts/components/LeftPane.tsx index 4cdc2223c6e..093e0589683 100644 --- a/ts/components/LeftPane.tsx +++ b/ts/components/LeftPane.tsx @@ -211,7 +211,7 @@ export const LeftPane: React.FC = ({ // but React doesn't know that they're the same, so you can lose focus as you change // modes. // 2. These components render virtualized lists, which are somewhat slow to initialize. - // Switching between modes can cause noticable hiccups. + // Switching between modes can cause noticeable hiccups. // // To get around those problems, we use "helpers" which all correspond to the same // interface. diff --git a/ts/scripts/fuse-electron.ts b/ts/scripts/fuse-electron.ts index 12b51f2fe22..259b878628e 100644 --- a/ts/scripts/fuse-electron.ts +++ b/ts/scripts/fuse-electron.ts @@ -46,7 +46,7 @@ export async function afterPack({ // Enables validation of the app.asar archive on macOS [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true, // Enforces that Electron will only load your app from "app.asar" instead of - // it's normall search paths + // its normal search paths [FuseV1Options.OnlyLoadAppFromAsar]: true, }); } diff --git a/ts/test-both/state/selectors/conversations_test.ts b/ts/test-both/state/selectors/conversations_test.ts index 58efae5754a..d5cd035acfa 100644 --- a/ts/test-both/state/selectors/conversations_test.ts +++ b/ts/test-both/state/selectors/conversations_test.ts @@ -599,7 +599,7 @@ describe('both/state/selectors/conversations', () => { 'convo-6': { ...makeConversation('convo-6'), profileSharing: true, - name: 'Should Be Droped (no title)', + name: 'Should Be Dropped (no title)', title: null, }, 'convo-7': { diff --git a/ts/test-electron/sql/sendLog_test.ts b/ts/test-electron/sql/sendLog_test.ts index 2fede1391ac..885aed9789c 100644 --- a/ts/test-electron/sql/sendLog_test.ts +++ b/ts/test-electron/sql/sendLog_test.ts @@ -268,7 +268,7 @@ describe('sql/sendLog', () => { }); describe('#deleteSentProtoByMessageId', () => { - it('deletes all records releated to that messageId', async () => { + it('deletes all records related to that messageId', async () => { assert.lengthOf(await getAllSentProtos(), 0); assert.lengthOf(await _getAllSentProtoMessageIds(), 0); assert.lengthOf(await _getAllSentProtoRecipients(), 0); diff --git a/ts/textsecure/Errors.ts b/ts/textsecure/Errors.ts index 6e78d5cc161..d70bb2b8b14 100644 --- a/ts/textsecure/Errors.ts +++ b/ts/textsecure/Errors.ts @@ -192,7 +192,7 @@ export class SendMessageProtoError extends Error implements CallbackResultType { public readonly dataMessage?: Uint8Array; - // Fields necesary for send log save + // Fields necessary for send log save public readonly contentHint?: number; public readonly contentProto?: Uint8Array; diff --git a/ts/textsecure/OutgoingMessage.ts b/ts/textsecure/OutgoingMessage.ts index 38c0ef1a991..9570f354e1d 100644 --- a/ts/textsecure/OutgoingMessage.ts +++ b/ts/textsecure/OutgoingMessage.ts @@ -433,7 +433,7 @@ export default class OutgoingMessage { ); if (!activeSession) { throw new Error( - 'OutgoingMessage.doSendMessage: No active sesssion!' + 'OutgoingMessage.doSendMessage: No active session!' ); } diff --git a/ts/textsecure/SocketManager.ts b/ts/textsecure/SocketManager.ts index 0111f2d77cb..fb0fbfbd183 100644 --- a/ts/textsecure/SocketManager.ts +++ b/ts/textsecure/SocketManager.ts @@ -170,7 +170,7 @@ export class SocketManager extends EventListener { await this.authenticate(this.credentials); } catch (error) { log.info( - 'SocketManager: authenticated socket failed to reconect ' + + 'SocketManager: authenticated socket failed to reconnect ' + `due to error ${Errors.toLogFormat(error)}` ); return reconnect(); diff --git a/ts/textsecure/Types.d.ts b/ts/textsecure/Types.d.ts index ff60479c3c0..56adca81358 100644 --- a/ts/textsecure/Types.d.ts +++ b/ts/textsecure/Types.d.ts @@ -239,7 +239,7 @@ export interface CallbackResultType { unidentifiedDeliveries?: Array; dataMessage?: Uint8Array; - // Fields necesary for send log save + // Fields necessary for send log save contentHint?: number; contentProto?: Uint8Array; timestamp?: number; diff --git a/ts/types/Attachment.ts b/ts/types/Attachment.ts index db8e6d90bb8..885dbda919e 100644 --- a/ts/types/Attachment.ts +++ b/ts/types/Attachment.ts @@ -228,7 +228,7 @@ export async function autoOrientJPEG( // All images go through handleImageAttachment before being sent and thus have // already been scaled to level, oriented, stripped of exif data, and saved // in high quality format. If we want to send the image in HQ we can return - // the attachement as-is. Otherwise we'll have to further scale it down. + // the attachment as-is. Otherwise we'll have to further scale it down. if (!attachment.data || sendHQImages) { return attachment; } diff --git a/ts/types/LinkPreview.ts b/ts/types/LinkPreview.ts index e9426868f8d..6be7e8fef9f 100644 --- a/ts/types/LinkPreview.ts +++ b/ts/types/LinkPreview.ts @@ -161,7 +161,7 @@ export function isLinkSneaky(href: string): boolean { return true; } - // This is necesary because getDomain returns domains in punycode form. + // This is necessary because getDomain returns domains in punycode form. const unicodeDomain = nodeUrl.domainToUnicode ? nodeUrl.domainToUnicode(url.hostname) : url.hostname; diff --git a/ts/util/sendToGroup.ts b/ts/util/sendToGroup.ts index 3042a63581a..fc35f9ce74e 100644 --- a/ts/util/sendToGroup.ts +++ b/ts/util/sendToGroup.ts @@ -1003,7 +1003,7 @@ async function encryptForSenderKey({ SenderCertificateMode.WithoutE164 ); if (!senderCertificateObject) { - throw new Error('encryptForSenderKey: Unable to fetch sender certifiate!'); + throw new Error('encryptForSenderKey: Unable to fetch sender certificate!'); } const senderCertificate = SenderCertificate.deserialize(