Upgrade Prettier to 2.4.1
This commit is contained in:
parent
f204784afe
commit
5619eeca83
176 changed files with 1961 additions and 2465 deletions
|
@ -41,10 +41,8 @@ const RETRY_BACKOFF: Record<number, number> = {
|
|||
let enabled = false;
|
||||
let timeout: NodeJS.Timeout | null;
|
||||
let logger: LoggerType;
|
||||
const _activeAttachmentDownloadJobs: Record<
|
||||
string,
|
||||
Promise<void> | undefined
|
||||
> = {};
|
||||
const _activeAttachmentDownloadJobs: Record<string, Promise<void> | undefined> =
|
||||
{};
|
||||
|
||||
type StartOptionsType = {
|
||||
logger: LoggerType;
|
||||
|
@ -231,9 +229,8 @@ async function _runJob(job?: AttachmentDownloadJobType): Promise<void> {
|
|||
return;
|
||||
}
|
||||
|
||||
const upgradedAttachment = await window.Signal.Migrations.processNewAttachment(
|
||||
downloaded
|
||||
);
|
||||
const upgradedAttachment =
|
||||
await window.Signal.Migrations.processNewAttachment(downloaded);
|
||||
|
||||
await _addAttachmentToMessage(message, upgradedAttachment, { type, index });
|
||||
|
||||
|
|
|
@ -47,10 +47,11 @@ export class Deletes extends Collection<DeleteModel> {
|
|||
try {
|
||||
// The conversation the deleted message was in; we have to find it in the database
|
||||
// to to figure that out.
|
||||
const targetConversation = await window.ConversationController.getConversationForTargetMessage(
|
||||
del.get('fromId'),
|
||||
del.get('targetSentTimestamp')
|
||||
);
|
||||
const targetConversation =
|
||||
await window.ConversationController.getConversationForTargetMessage(
|
||||
del.get('fromId'),
|
||||
del.get('targetSentTimestamp')
|
||||
);
|
||||
|
||||
if (!targetConversation) {
|
||||
log.info(
|
||||
|
|
|
@ -222,9 +222,8 @@ export class MessageReceipts extends Collection<MessageReceiptModel> {
|
|||
wasDeliveredWithSealedSender(sourceConversationId, message)) ||
|
||||
type === MessageReceiptType.Read
|
||||
) {
|
||||
const recipient = window.ConversationController.get(
|
||||
sourceConversationId
|
||||
);
|
||||
const recipient =
|
||||
window.ConversationController.get(sourceConversationId);
|
||||
const recipientUuid = recipient?.get('uuid');
|
||||
const deviceId = receipt.get('sourceDevice');
|
||||
|
||||
|
|
|
@ -58,21 +58,21 @@ export class Reactions extends Collection<ReactionModel> {
|
|||
try {
|
||||
// The conversation the target message was in; we have to find it in the database
|
||||
// to to figure that out.
|
||||
const targetConversationId = window.ConversationController.ensureContactIds(
|
||||
{
|
||||
const targetConversationId =
|
||||
window.ConversationController.ensureContactIds({
|
||||
uuid: reaction.get('targetAuthorUuid'),
|
||||
}
|
||||
);
|
||||
});
|
||||
if (!targetConversationId) {
|
||||
throw new Error(
|
||||
'onReaction: No conversationId returned from ensureContactIds!'
|
||||
);
|
||||
}
|
||||
|
||||
const targetConversation = await window.ConversationController.getConversationForTargetMessage(
|
||||
targetConversationId,
|
||||
reaction.get('targetTimestamp')
|
||||
);
|
||||
const targetConversation =
|
||||
await window.ConversationController.getConversationForTargetMessage(
|
||||
targetConversationId,
|
||||
reaction.get('targetTimestamp')
|
||||
);
|
||||
if (!targetConversation) {
|
||||
log.info(
|
||||
'No target conversation for reaction',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue