Fix typos
This commit is contained in:
parent
3705b959d6
commit
3c80272673
21 changed files with 24 additions and 24 deletions
|
@ -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`.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 });
|
||||
|
|
|
@ -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<HTMLButtonElement, ButtonProps>(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -172,7 +172,7 @@ export class Reactions extends Collection<ReactionModel> {
|
|||
);
|
||||
|
||||
// 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'),
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -60,7 +60,7 @@ export async function sendDeleteForEveryoneMessage(
|
|||
);
|
||||
|
||||
log.info(
|
||||
`sendDeleteForEveryoneMessage: enqueing DeleteForEveryone: ${idForLogging} ` +
|
||||
`sendDeleteForEveryoneMessage: enqueuing DeleteForEveryone: ${idForLogging} ` +
|
||||
`in conversation ${conversationIdForLogging}`
|
||||
);
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue