Fix typos in TypeScript and SCSS files

See [#5136][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5136
This commit is contained in:
Jost Schulte 2021-04-02 22:28:07 +02:00 committed by GitHub
parent d77e8804e3
commit 9823eb2201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 16 additions and 16 deletions

View File

@ -52,7 +52,7 @@
// Module: Message // Module: Message
// Note: this does the same thing as module-timeline__message-container but // Note: this does the same thing as module-timeline__message-container but
// can be used outside tht Timeline contact more easily. // can be used outside the Timeline contact more easily.
.module-message-container { .module-message-container {
@include button-reset; @include button-reset;

View File

@ -86,7 +86,7 @@ async function fetchWithRedirects(
} }
urlsSeen.add(nextHrefToLoad); urlsSeen.add(nextHrefToLoad);
// This `await` is deliberatly inside of a loop. // This `await` is deliberately inside of a loop.
// eslint-disable-next-line no-await-in-loop // eslint-disable-next-line no-await-in-loop
const response = await fetchFn(nextHrefToLoad, { const response = await fetchFn(nextHrefToLoad, {
...options, ...options,

View File

@ -3091,7 +3091,7 @@ export class ConversationModel extends window.Backbone.Model<
} }
// We are only creating this model so we can use its sync message // We are only creating this model so we can use its sync message
// sending functionality. It will not be saved to the datbase. // sending functionality. It will not be saved to the database.
const message = new window.Whisper.Message(attributes); const message = new window.Whisper.Message(attributes);
// We're offline! // We're offline!
@ -3201,7 +3201,7 @@ export class ConversationModel extends window.Backbone.Model<
} }
// We are only creating this model so we can use its sync message // We are only creating this model so we can use its sync message
// sending functionality. It will not be saved to the datbase. // sending functionality. It will not be saved to the database.
const message = new window.Whisper.Message(attributes); const message = new window.Whisper.Message(attributes);
// This is to ensure that the functions in send() and sendSyncMessage() don't save // This is to ensure that the functions in send() and sendSyncMessage() don't save
@ -5312,11 +5312,11 @@ window.Whisper.GroupMemberConversation = window.Backbone.Model.extend({
if (!conversation) { if (!conversation) {
throw new Error( throw new Error(
'GroupMemberConversation.initialze: conversation required!' 'GroupMemberConversation.initialize: conversation required!'
); );
} }
if (!window._.isBoolean(isAdmin)) { if (!window._.isBoolean(isAdmin)) {
throw new Error('GroupMemberConversation.initialze: isAdmin required!'); throw new Error('GroupMemberConversation.initialize: isAdmin required!');
} }
// If our underlying conversation changes, we change too // If our underlying conversation changes, we change too

View File

@ -2239,7 +2239,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
return false; return false;
} }
// We can reply if this is outgoing and delievered to at least one recipient // We can reply if this is outgoing and delivered to at least one recipient
if (isOutgoing && numDelivered > 0) { if (isOutgoing && numDelivered > 0) {
return true; return true;
} }
@ -3279,7 +3279,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
window.textsecure.protobuf.GroupContext.Type.DELIVER; window.textsecure.protobuf.GroupContext.Type.DELIVER;
// Drop an incoming GroupV2 message if we or the sender are not part of the group // Drop an incoming GroupV2 message if we or the sender are not part of the group
// after applying the message's associated group chnages. // after applying the message's associated group changes.
if ( if (
type === 'incoming' && type === 'incoming' &&
!conversation.isPrivate() && !conversation.isPrivate() &&

View File

@ -10,7 +10,7 @@ let singleQueue: Queue | null = null;
let multipleQueue: Queue | null = null; let multipleQueue: Queue | null = null;
// Note: we don't want queue timeouts, because delays here are due to in-progress sql // Note: we don't want queue timeouts, because delays here are due to in-progress sql
// operations. For example we might try to start a transaction when the prevous isn't // operations. For example we might try to start a transaction when the previous isn't
// done, causing that database operation to fail. // done, causing that database operation to fail.
function makeNewSingleQueue(): Queue { function makeNewSingleQueue(): Queue {
singleQueue = new Queue({ concurrency: 1 }); singleQueue = new Queue({ concurrency: 1 });

View File

@ -425,7 +425,7 @@ describe('link preview fetching', () => {
); );
}); });
it('allows an explitly inline Content-Disposition header', async () => { it('allows an explicitly inline Content-Disposition header', async () => {
const fakeFetch = stub().resolves( const fakeFetch = stub().resolves(
makeResponse({ makeResponse({
headers: { 'Content-Disposition': 'inline' }, headers: { 'Content-Disposition': 'inline' },

View File

@ -1225,7 +1225,7 @@ class MessageReceiverInner extends EventTarget {
const errorString = error && error.stack ? error.stack : error; const errorString = error && error.stack ? error.stack : error;
window.log.error( window.log.error(
`maybeLightSessionReset/${id}: Enountered error`, `maybeLightSessionReset/${id}: Encountered error`,
errorString errorString
); );
} }

View File

@ -4,7 +4,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
import utils from './Helpers'; import utils from './Helpers';
// Default implmentation working with localStorage // Default implementation working with localStorage
const localStorageImpl: StorageInterface = { const localStorageImpl: StorageInterface = {
put(key: string, value: any) { put(key: string, value: any) {
if (value === undefined) { if (value === undefined) {

View File

@ -59,7 +59,7 @@ class SyncRequestInner extends EventTarget {
window.log.info('SyncRequest now sending contact sync message...'); window.log.info('SyncRequest now sending contact sync message...');
wrap(sender.sendRequestContactSyncMessage(sendOptions)) wrap(sender.sendRequestContactSyncMessage(sendOptions))
.then(() => { .then(() => {
window.log.info('SyncRequest now sending group sync messsage...'); window.log.info('SyncRequest now sending group sync message...');
return wrap(sender.sendRequestGroupSyncMessage(sendOptions)); return wrap(sender.sendRequestGroupSyncMessage(sendOptions));
}) })
.catch((error: Error) => { .catch((error: Error) => {

View File

@ -17,7 +17,7 @@ type AnimatedPngData = {
* 2. If so, does it contain the [`acTL` chunk][1] before the [`IDAT` chunk][2], in the * 2. If so, does it contain the [`acTL` chunk][1] before the [`IDAT` chunk][2], in the
* first megabyte? * first megabyte?
* *
* Though we _could_ only check for the precense of the `acTL` chunk anywhere, we make * Though we _could_ only check for the presence of the `acTL` chunk anywhere, we make
* sure it's before the `IDAT` chunk and within the first megabyte. This adds a small * sure it's before the `IDAT` chunk and within the first megabyte. This adds a small
* amount of validity checking and helps us avoid problems with large PNGs. * amount of validity checking and helps us avoid problems with large PNGs.
* *

View File

@ -13,7 +13,7 @@ const ZONE_IDENTIFIER_CONTENTS = Buffer.from('[ZoneTransfer]\r\nZoneId=3');
* *
* To do this, we write the "Zone.Identifier" for the NTFS alternative data stream. * To do this, we write the "Zone.Identifier" for the NTFS alternative data stream.
* *
* This can fail in a bunch of sitations: * This can fail in a bunch of situations:
* *
* - The OS is not Windows. * - The OS is not Windows.
* - The filesystem is not NTFS. * - The filesystem is not NTFS.

2
ts/window.d.ts vendored
View File

@ -716,7 +716,7 @@ export type WhisperType = {
}; };
DeliveryReceipts: { DeliveryReceipts: {
add: (reciept: WhatIsThis) => void; add: (receipt: WhatIsThis) => void;
forMessage: (conversation: unknown, message: unknown) => Array<WhatIsThis>; forMessage: (conversation: unknown, message: unknown) => Array<WhatIsThis>;
onReceipt: (receipt: WhatIsThis) => void; onReceipt: (receipt: WhatIsThis) => void;
}; };