Fix typos

This commit is contained in:
Dimitris Apostolou 2022-02-09 22:33:19 +02:00
parent 0e853ec7b7
commit 718d0a7046
No known key found for this signature in database
GPG Key ID: 4B5D20E938204A8A
13 changed files with 13 additions and 13 deletions

View File

@ -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;
}

View File

@ -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,

View File

@ -211,7 +211,7 @@ export const LeftPane: React.FC<PropsType> = ({
// 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.

View File

@ -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,
});
}

View File

@ -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': {

View File

@ -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);

View File

@ -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;

View File

@ -433,7 +433,7 @@ export default class OutgoingMessage {
);
if (!activeSession) {
throw new Error(
'OutgoingMessage.doSendMessage: No active sesssion!'
'OutgoingMessage.doSendMessage: No active session!'
);
}

View File

@ -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();

View File

@ -239,7 +239,7 @@ export interface CallbackResultType {
unidentifiedDeliveries?: Array<string>;
dataMessage?: Uint8Array;
// Fields necesary for send log save
// Fields necessary for send log save
contentHint?: number;
contentProto?: Uint8Array;
timestamp?: number;

View File

@ -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;
}

View File

@ -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;

View File

@ -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(