This commit is contained in:
commit
0e31659682
13 changed files with 13 additions and 13 deletions
|
@ -26,7 +26,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-grow: 1;
|
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;
|
min-height: 50px;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,7 @@ export const BetterAvatar = ({
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: avatarURL ? `url(${avatarURL})` : undefined,
|
backgroundImage: avatarURL ? `url(${avatarURL})` : undefined,
|
||||||
backgroundSize: size,
|
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
|
// padding around the bubble to make room for the selection border
|
||||||
height: size + 8,
|
height: size + 8,
|
||||||
width: size + 8,
|
width: size + 8,
|
||||||
|
|
|
@ -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
|
// but React doesn't know that they're the same, so you can lose focus as you change
|
||||||
// modes.
|
// modes.
|
||||||
// 2. These components render virtualized lists, which are somewhat slow to initialize.
|
// 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
|
// To get around those problems, we use "helpers" which all correspond to the same
|
||||||
// interface.
|
// interface.
|
||||||
|
|
|
@ -46,7 +46,7 @@ export async function afterPack({
|
||||||
// Enables validation of the app.asar archive on macOS
|
// Enables validation of the app.asar archive on macOS
|
||||||
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
|
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
|
||||||
// Enforces that Electron will only load your app from "app.asar" instead of
|
// 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,
|
[FuseV1Options.OnlyLoadAppFromAsar]: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -599,7 +599,7 @@ describe('both/state/selectors/conversations', () => {
|
||||||
'convo-6': {
|
'convo-6': {
|
||||||
...makeConversation('convo-6'),
|
...makeConversation('convo-6'),
|
||||||
profileSharing: true,
|
profileSharing: true,
|
||||||
name: 'Should Be Droped (no title)',
|
name: 'Should Be Dropped (no title)',
|
||||||
title: null,
|
title: null,
|
||||||
},
|
},
|
||||||
'convo-7': {
|
'convo-7': {
|
||||||
|
|
|
@ -268,7 +268,7 @@ describe('sql/sendLog', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('#deleteSentProtoByMessageId', () => {
|
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 getAllSentProtos(), 0);
|
||||||
assert.lengthOf(await _getAllSentProtoMessageIds(), 0);
|
assert.lengthOf(await _getAllSentProtoMessageIds(), 0);
|
||||||
assert.lengthOf(await _getAllSentProtoRecipients(), 0);
|
assert.lengthOf(await _getAllSentProtoRecipients(), 0);
|
||||||
|
|
|
@ -192,7 +192,7 @@ export class SendMessageProtoError extends Error implements CallbackResultType {
|
||||||
|
|
||||||
public readonly dataMessage?: Uint8Array;
|
public readonly dataMessage?: Uint8Array;
|
||||||
|
|
||||||
// Fields necesary for send log save
|
// Fields necessary for send log save
|
||||||
public readonly contentHint?: number;
|
public readonly contentHint?: number;
|
||||||
|
|
||||||
public readonly contentProto?: Uint8Array;
|
public readonly contentProto?: Uint8Array;
|
||||||
|
|
|
@ -433,7 +433,7 @@ export default class OutgoingMessage {
|
||||||
);
|
);
|
||||||
if (!activeSession) {
|
if (!activeSession) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'OutgoingMessage.doSendMessage: No active sesssion!'
|
'OutgoingMessage.doSendMessage: No active session!'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@ export class SocketManager extends EventListener {
|
||||||
await this.authenticate(this.credentials);
|
await this.authenticate(this.credentials);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.info(
|
log.info(
|
||||||
'SocketManager: authenticated socket failed to reconect ' +
|
'SocketManager: authenticated socket failed to reconnect ' +
|
||||||
`due to error ${Errors.toLogFormat(error)}`
|
`due to error ${Errors.toLogFormat(error)}`
|
||||||
);
|
);
|
||||||
return reconnect();
|
return reconnect();
|
||||||
|
|
2
ts/textsecure/Types.d.ts
vendored
2
ts/textsecure/Types.d.ts
vendored
|
@ -239,7 +239,7 @@ export interface CallbackResultType {
|
||||||
unidentifiedDeliveries?: Array<string>;
|
unidentifiedDeliveries?: Array<string>;
|
||||||
dataMessage?: Uint8Array;
|
dataMessage?: Uint8Array;
|
||||||
|
|
||||||
// Fields necesary for send log save
|
// Fields necessary for send log save
|
||||||
contentHint?: number;
|
contentHint?: number;
|
||||||
contentProto?: Uint8Array;
|
contentProto?: Uint8Array;
|
||||||
timestamp?: number;
|
timestamp?: number;
|
||||||
|
|
|
@ -228,7 +228,7 @@ export async function autoOrientJPEG(
|
||||||
// All images go through handleImageAttachment before being sent and thus have
|
// All images go through handleImageAttachment before being sent and thus have
|
||||||
// already been scaled to level, oriented, stripped of exif data, and saved
|
// 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
|
// 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) {
|
if (!attachment.data || sendHQImages) {
|
||||||
return attachment;
|
return attachment;
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,7 +161,7 @@ export function isLinkSneaky(href: string): boolean {
|
||||||
return true;
|
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
|
const unicodeDomain = nodeUrl.domainToUnicode
|
||||||
? nodeUrl.domainToUnicode(url.hostname)
|
? nodeUrl.domainToUnicode(url.hostname)
|
||||||
: url.hostname;
|
: url.hostname;
|
||||||
|
|
|
@ -1003,7 +1003,7 @@ async function encryptForSenderKey({
|
||||||
SenderCertificateMode.WithoutE164
|
SenderCertificateMode.WithoutE164
|
||||||
);
|
);
|
||||||
if (!senderCertificateObject) {
|
if (!senderCertificateObject) {
|
||||||
throw new Error('encryptForSenderKey: Unable to fetch sender certifiate!');
|
throw new Error('encryptForSenderKey: Unable to fetch sender certificate!');
|
||||||
}
|
}
|
||||||
|
|
||||||
const senderCertificate = SenderCertificate.deserialize(
|
const senderCertificate = SenderCertificate.deserialize(
|
||||||
|
|
Loading…
Reference in a new issue