diff --git a/stylesheets/_titlebar.scss b/stylesheets/_titlebar.scss index 1cc0276c0..b1ba91cc9 100644 --- a/stylesheets/_titlebar.scss +++ b/stylesheets/_titlebar.scss @@ -2,7 +2,7 @@ // SPDX-License-Identifier: AGPL-3.0-only body { - // Overriden by ts/background.ts + // Overridden by ts/background.ts --zoom-factor: 1; // These should match the logic in `ts/types/Settings.ts`'s `getTitleBarVisibility`. diff --git a/ts/backbone/reliable_trigger.ts b/ts/backbone/reliable_trigger.ts index 50196124d..246a78906 100644 --- a/ts/backbone/reliable_trigger.ts +++ b/ts/backbone/reliable_trigger.ts @@ -23,7 +23,7 @@ type InternalBackboneEvent = { // 2. added try/catch handlers to triggerEvents with error logging inside // every while loop -// And of course, we update the protoypes of Backbone.Model/Backbone.View as well as +// And of course, we update the prototypes of Backbone.Model/Backbone.View as well as // Backbone.Events itself // Regular expression used to split event strings. diff --git a/ts/components/TitleBarContainer.tsx b/ts/components/TitleBarContainer.tsx index 193ca79ac..683b05e45 100644 --- a/ts/components/TitleBarContainer.tsx +++ b/ts/components/TitleBarContainer.tsx @@ -35,7 +35,7 @@ export type PropsType = Readonly<{ titleBarDoubleClick?: () => void; children: ReactNode; - // Needs to be overriden in sticker-creator + // Needs to be overridden in sticker-creator iconSrc?: string; }> & (MenuPropsType | { hasMenu?: false }); diff --git a/ts/components/conversation/MessageAudio.tsx b/ts/components/conversation/MessageAudio.tsx index b44dece63..3bedbc9aa 100644 --- a/ts/components/conversation/MessageAudio.tsx +++ b/ts/components/conversation/MessageAudio.tsx @@ -123,7 +123,7 @@ const timeToText = (time: number): string => { }; /** - * Handles animations, key events, and stoping event propagation + * Handles animations, key events, and stopping event propagation * for play button and playback rate button */ const Button = React.forwardRef( diff --git a/ts/groups.ts b/ts/groups.ts index adb09432e..6129f558b 100644 --- a/ts/groups.ts +++ b/ts/groups.ts @@ -3034,7 +3034,7 @@ async function updateGroup( // By updating activeAt we force this conversation into the left pane if this is the // first time we've fetched data about it, and we were able to fetch its name. Nobody // likes to see Unknown Group in the left pane. After first fetch, we rely on normal - // message activity (including group change messsages) to set the timestamp properly. + // message activity (including group change messages) to set the timestamp properly. let activeAt = conversation.get('active_at') || null; if ( !viaFirstStorageSync && @@ -4692,7 +4692,7 @@ function extractDiffs({ ) { const expireTimer = current.expireTimer || DurationInSeconds.ZERO; log.info( - `extractDiffs/${logId}: generating change notifcation for new ${expireTimer} timer` + `extractDiffs/${logId}: generating change notification for new ${expireTimer} timer` ); timerNotification = { ...generateBasicMessage(), @@ -5304,7 +5304,7 @@ export async function decryptGroupAvatar( return avatar; } -// Ovewriting result.avatar as part of functionality +// Overwriting result.avatar as part of functionality /* eslint-disable no-param-reassign */ export async function applyNewAvatar( newAvatar: string | undefined, diff --git a/ts/jobs/helpers/sendProfileKey.ts b/ts/jobs/helpers/sendProfileKey.ts index 32f8b6168..89bffa67c 100644 --- a/ts/jobs/helpers/sendProfileKey.ts +++ b/ts/jobs/helpers/sendProfileKey.ts @@ -191,7 +191,7 @@ export async function sendProfileKey( } catch (error: unknown) { if (canAllErrorsBeIgnored(conversation.attributes, error)) { log.info( - 'Group send failures were all OutgoingIdentityKeyError, SendMessageChallengeError, or UnregisteredUserError. Returning succcessfully.' + 'Group send failures were all OutgoingIdentityKeyError, SendMessageChallengeError, or UnregisteredUserError. Returning successfully.' ); return; } diff --git a/ts/messageModifiers/Reactions.ts b/ts/messageModifiers/Reactions.ts index dcb587561..cae5bae68 100644 --- a/ts/messageModifiers/Reactions.ts +++ b/ts/messageModifiers/Reactions.ts @@ -172,7 +172,7 @@ export class Reactions extends Collection { ); // Use the generated message in ts/background.ts to create a message - // if the reaction is targetted at a story. + // if the reaction is targeted at a story. if (isStory(targetMessage)) { generatedMessage.set({ expireTimer: targetConversation.get('expireTimer'), diff --git a/ts/services/storage.ts b/ts/services/storage.ts index 12837d171..f23d9724d 100644 --- a/ts/services/storage.ts +++ b/ts/services/storage.ts @@ -1684,7 +1684,7 @@ async function sync( let manifest: Proto.ManifestRecord | undefined; try { - // If we've previously interacted with strage service, update 'fetchComplete' record + // If we've previously interacted with storage service, update 'fetchComplete' record const previousFetchComplete = window.storage.get('storageFetchComplete'); const manifestFromStorage = window.storage.get('manifestVersion'); if (!previousFetchComplete && isNumber(manifestFromStorage)) { diff --git a/ts/sql/Server.ts b/ts/sql/Server.ts index 7b35eb397..0840bdbd0 100644 --- a/ts/sql/Server.ts +++ b/ts/sql/Server.ts @@ -2181,7 +2181,7 @@ export function _storyIdPredicate( return '$storyId IS NULL'; } - // In constrast to: replies to a specific story + // In contrast to: replies to a specific story return 'storyId IS $storyId'; } diff --git a/ts/sql/migrations/41-uuid-keys.ts b/ts/sql/migrations/41-uuid-keys.ts index 4df815c19..925e4224b 100644 --- a/ts/sql/migrations/41-uuid-keys.ts +++ b/ts/sql/migrations/41-uuid-keys.ts @@ -252,7 +252,7 @@ export default function updateToSchemaVersion41( }; const updateSessions = (ourUuid: string) => { - // Use uuid instead of conversation id in existing sesions and prefix id + // Use uuid instead of conversation id in existing sessions and prefix id // with ourUuid. // // Set ourUuid column and field in json diff --git a/ts/sql/migrations/71-merge-notifications.ts b/ts/sql/migrations/71-merge-notifications.ts index 6dcbbd31e..b4d76d3a1 100644 --- a/ts/sql/migrations/71-merge-notifications.ts +++ b/ts/sql/migrations/71-merge-notifications.ts @@ -22,7 +22,7 @@ export default function updateToSchemaVersion71( DROP INDEX messages_activity; DROP INDEX message_user_initiated; - --- Thse will also be re-added below + --- These will also be re-added below ALTER TABLE messages DROP COLUMN shouldAffectActivity; ALTER TABLE messages DROP COLUMN shouldAffectPreview; ALTER TABLE messages DROP COLUMN isUserInitiatedMessage; diff --git a/ts/state/ducks/stories.ts b/ts/state/ducks/stories.ts index 08e9caa29..d5fd172e8 100644 --- a/ts/state/ducks/stories.ts +++ b/ts/state/ducks/stories.ts @@ -599,7 +599,7 @@ function sendStoryMessage( 'sendStoryMessage: sendStoryModalData is not defined, cannot send' ); - log.info('sendStoryMessage: Verifing trust for all recipients'); + log.info('sendStoryMessage: Verifying trust for all recipients'); const result = await blockSendUntilConversationsAreVerified( sendStoryModalData, diff --git a/ts/test-both/util/getFontNameByTextScript_test.ts b/ts/test-both/util/getFontNameByTextScript_test.ts index 3b8a6eb0f..488405d59 100644 --- a/ts/test-both/util/getFontNameByTextScript_test.ts +++ b/ts/test-both/util/getFontNameByTextScript_test.ts @@ -38,7 +38,7 @@ describe('getFontNameByTextScript', () => { assert.isFalse(fontSniffer.hasArabic(text), 'arabic'); }); - it('has cyrillic (Ukranian)', () => { + it('has cyrillic (Ukrainian)', () => { const text = 'Швидка бура лисиця стрибає через ледачого пса'; assert.isFalse(fontSniffer.hasLatin(text), 'latin'); assert.isTrue(fontSniffer.hasCyrillic(text), 'cyrillic'); diff --git a/ts/textsecure/AccountManager.ts b/ts/textsecure/AccountManager.ts index 791cf1b88..f97ad295d 100644 --- a/ts/textsecure/AccountManager.ts +++ b/ts/textsecure/AccountManager.ts @@ -604,7 +604,7 @@ export default class AccountManager extends EventTarget { // `setCredentials` needs to be called // before `saveIdentifyWithAttributes` since `saveIdentityWithAttributes` - // indirectly calls `ConversationController.getConverationId()` which + // indirectly calls `ConversationController.getConversationId()` which // initializes the conversation for the given number (our number) which // calls out to the user storage API to get the stored UUID and number // information. @@ -718,7 +718,7 @@ export default class AccountManager extends EventTarget { await storage.protocol.hydrateCaches(); }); - // Intentionally not awaiting becase `updatePNIIdentity` runs on an + // Intentionally not awaiting because `updatePNIIdentity` runs on an // Encrypted queue of MessageReceiver and we don't want to await remote // endpoints and block message processing. void this.queueTask(async () => { diff --git a/ts/types/Stories.ts b/ts/types/Stories.ts index 002f4570b..3b85b3137 100644 --- a/ts/types/Stories.ts +++ b/ts/types/Stories.ts @@ -122,7 +122,7 @@ export enum StoryViewTargetType { // Type of stories to view before closing the viewer // All = All the stories in order -// Single = A single story. Like when clicking on a qouted story +// Single = A single story. Like when clicking on a quoted story // Unread = View only unread stories // User = All of a user's stories export enum StoryViewModeType { diff --git a/ts/util/deleteStoryForEveryone.ts b/ts/util/deleteStoryForEveryone.ts index 6623cbf77..075ce56dc 100644 --- a/ts/util/deleteStoryForEveryone.ts +++ b/ts/util/deleteStoryForEveryone.ts @@ -175,7 +175,7 @@ export async function deleteStoryForEveryone( }); // Send the DOE - log.info(`${logId}: enqueing DeleteStoryForEveryone`); + log.info(`${logId}: enqueuing DeleteStoryForEveryone`); try { const jobData: ConversationQueueJobData = { diff --git a/ts/util/expirationTimer.ts b/ts/util/expirationTimer.ts index 22126eb1d..cad73ef27 100644 --- a/ts/util/expirationTimer.ts +++ b/ts/util/expirationTimer.ts @@ -66,7 +66,7 @@ export function format( seconds % SECONDS_PER_WEEK === 0 ? ['w'] : ['d', 'h', 'm', 's']; return humanizeDuration(seconds * SECOND, { - // if we have an explict `largest` specified, + // if we have an explicit `largest` specified, // allow it to pick from all the units units: largest ? allUnits : defaultUnits, largest, diff --git a/ts/util/groupMemberNameCollisions.ts b/ts/util/groupMemberNameCollisions.ts index 7ba84a1ba..3f43e52b8 100644 --- a/ts/util/groupMemberNameCollisions.ts +++ b/ts/util/groupMemberNameCollisions.ts @@ -32,7 +32,7 @@ export function getCollisionsFromMemberships( ); const groupedByTitle = groupBy(candidateMembers, member => member.title); // This cast is here because `pickBy` returns a `Partial`, which is incompatible with - // `Record`. [This demonstates the problem][0], but I don't believe it's an actual + // `Record`. [This demonstrates the problem][0], but I don't believe it's an actual // issue in the code. // // Alternatively, we could filter undefined keys or something like that. diff --git a/ts/util/sendDeleteForEveryoneMessage.ts b/ts/util/sendDeleteForEveryoneMessage.ts index f6b2ab06b..97490fe05 100644 --- a/ts/util/sendDeleteForEveryoneMessage.ts +++ b/ts/util/sendDeleteForEveryoneMessage.ts @@ -60,7 +60,7 @@ export async function sendDeleteForEveryoneMessage( ); log.info( - `sendDeleteForEveryoneMessage: enqueing DeleteForEveryone: ${idForLogging} ` + + `sendDeleteForEveryoneMessage: enqueuing DeleteForEveryone: ${idForLogging} ` + `in conversation ${conversationIdForLogging}` ); diff --git a/ts/util/sendToGroup.ts b/ts/util/sendToGroup.ts index f5567e37e..0495db775 100644 --- a/ts/util/sendToGroup.ts +++ b/ts/util/sendToGroup.ts @@ -1305,7 +1305,7 @@ async function fetchKeysForIdentifier( ); try { - // Note: we have no way to make an unrestricted unathenticated key fetch as part of a + // Note: we have no way to make an unrestricted unauthenticated key fetch as part of a // story send, so we hardcode story=false. const { accessKeyFailed } = await getKeysForIdentifier( identifier, diff --git a/ts/util/wrapWithSyncMessageSend.ts b/ts/util/wrapWithSyncMessageSend.ts index 226dc3d9f..3e0c984ca 100644 --- a/ts/util/wrapWithSyncMessageSend.ts +++ b/ts/util/wrapWithSyncMessageSend.ts @@ -93,7 +93,7 @@ export async function wrapWithSyncMessageSend({ if (areAllErrorsUnregistered(conversation.attributes, error)) { log.info( `${logId}: Group send failures were all UnregisteredUserError, ` + - 'returning succcessfully.' + 'returning successfully.' ); return; }