diff --git a/.eslintrc.js b/.eslintrc.js index a563a543b366..514c1fa0e579 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -45,6 +45,7 @@ const rules = { 'no-continue': 'off', 'lines-between-class-members': 'off', + 'class-methods-use-this': 'off', // Prettier overrides: 'arrow-parens': 'off', diff --git a/ts/ConversationController.ts b/ts/ConversationController.ts index a72d15c4c92c..8d85538e3958 100644 --- a/ts/ConversationController.ts +++ b/ts/ConversationController.ts @@ -313,7 +313,6 @@ export class ConversationController { return conversation; } - // eslint-disable-next-line class-methods-use-this areWePrimaryDevice(): boolean { const ourDeviceId = window.textsecure.storage.user.getDeviceId(); @@ -719,7 +718,6 @@ export class ConversationController { * conversation the message belongs to OR null if a conversation isn't * found. */ - // eslint-disable-next-line class-methods-use-this async getConversationForTargetMessage( targetFromId: string, targetTimestamp: number diff --git a/ts/LibSignalStores.ts b/ts/LibSignalStores.ts index 6b588eb70b50..9e2491a58446 100644 --- a/ts/LibSignalStores.ts +++ b/ts/LibSignalStores.ts @@ -2,7 +2,6 @@ // SPDX-License-Identifier: AGPL-3.0-only /* eslint-disable max-classes-per-file */ -/* eslint-disable class-methods-use-this */ import { isNumber } from 'lodash'; diff --git a/ts/SignalProtocolStore.ts b/ts/SignalProtocolStore.ts index 24f28e04f68c..f7f91493efc7 100644 --- a/ts/SignalProtocolStore.ts +++ b/ts/SignalProtocolStore.ts @@ -1,8 +1,6 @@ // Copyright 2016-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ - import PQueue from 'p-queue'; import { isNumber } from 'lodash'; import { z } from 'zod'; diff --git a/ts/components/conversation/ContactDetail.tsx b/ts/components/conversation/ContactDetail.tsx index 1b01b26803dd..ece9fadc6a75 100644 --- a/ts/components/conversation/ContactDetail.tsx +++ b/ts/components/conversation/ContactDetail.tsx @@ -1,4 +1,4 @@ -// Copyright 2018-2020 Signal Messenger, LLC +// Copyright 2018-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; @@ -74,7 +74,6 @@ function getLabelForAddress( } export class ContactDetail extends React.Component { - // eslint-disable-next-line class-methods-use-this public renderSendMessage({ hasSignalAccount, i18n, @@ -109,7 +108,6 @@ export class ContactDetail extends React.Component { ); } - // eslint-disable-next-line class-methods-use-this public renderEmail( items: Array | undefined, i18n: LocalizerType @@ -133,7 +131,6 @@ export class ContactDetail extends React.Component { }); } - // eslint-disable-next-line class-methods-use-this public renderPhone( items: Array | undefined, i18n: LocalizerType @@ -157,7 +154,6 @@ export class ContactDetail extends React.Component { }); } - // eslint-disable-next-line class-methods-use-this public renderAddressLine(value: string | undefined): JSX.Element | undefined { if (!value) { return undefined; @@ -166,7 +162,6 @@ export class ContactDetail extends React.Component { return
{value}
; } - // eslint-disable-next-line class-methods-use-this public renderPOBox( poBox: string | undefined, i18n: LocalizerType @@ -182,7 +177,6 @@ export class ContactDetail extends React.Component { ); } - // eslint-disable-next-line class-methods-use-this public renderAddressLineTwo(address: PostalAddress): JSX.Element | null { if (address.city || address.region || address.postcode) { return ( diff --git a/ts/components/conversation/Quote.tsx b/ts/components/conversation/Quote.tsx index a622d6ea2a9f..40d4a3ddd8f6 100644 --- a/ts/components/conversation/Quote.tsx +++ b/ts/components/conversation/Quote.tsx @@ -191,7 +191,6 @@ export class Quote extends React.Component { ); } - // eslint-disable-next-line class-methods-use-this public renderIcon(icon: string): JSX.Element { return (
diff --git a/ts/components/leftPane/LeftPaneArchiveHelper.tsx b/ts/components/leftPane/LeftPaneArchiveHelper.tsx index 75c216e552d2..f19a44e50c03 100644 --- a/ts/components/leftPane/LeftPaneArchiveHelper.tsx +++ b/ts/components/leftPane/LeftPaneArchiveHelper.tsx @@ -27,8 +27,6 @@ export type LeftPaneArchivePropsType = | LeftPaneArchiveBasePropsType | (LeftPaneArchiveBasePropsType & LeftPaneSearchPropsType); -/* eslint-disable class-methods-use-this */ - export class LeftPaneArchiveHelper extends LeftPaneHelper { private readonly archivedConversations: ReadonlyArray; diff --git a/ts/components/leftPane/LeftPaneChooseGroupMembersHelper.tsx b/ts/components/leftPane/LeftPaneChooseGroupMembersHelper.tsx index e5d6b2b4f47e..9c33e8442fb3 100644 --- a/ts/components/leftPane/LeftPaneChooseGroupMembersHelper.tsx +++ b/ts/components/leftPane/LeftPaneChooseGroupMembersHelper.tsx @@ -32,8 +32,6 @@ export type LeftPaneChooseGroupMembersPropsType = { selectedContacts: Array; }; -/* eslint-disable class-methods-use-this */ - export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper { private readonly candidateContacts: ReadonlyArray; diff --git a/ts/components/leftPane/LeftPaneComposeHelper.tsx b/ts/components/leftPane/LeftPaneComposeHelper.tsx index f3db832013c8..24bbae454cae 100644 --- a/ts/components/leftPane/LeftPaneComposeHelper.tsx +++ b/ts/components/leftPane/LeftPaneComposeHelper.tsx @@ -32,8 +32,6 @@ enum TopButton { StartNewConversation, } -/* eslint-disable class-methods-use-this */ - export class LeftPaneComposeHelper extends LeftPaneHelper { private readonly composeContacts: ReadonlyArray; diff --git a/ts/components/leftPane/LeftPaneHelper.tsx b/ts/components/leftPane/LeftPaneHelper.tsx index 82daccd5bdc9..92900ac7f9d2 100644 --- a/ts/components/leftPane/LeftPaneHelper.tsx +++ b/ts/components/leftPane/LeftPaneHelper.tsx @@ -21,8 +21,6 @@ export type ToFindType = { unreadOnly: boolean; }; -/* eslint-disable class-methods-use-this */ - export abstract class LeftPaneHelper { getHeaderContents( _: Readonly<{ diff --git a/ts/components/leftPane/LeftPaneInboxHelper.tsx b/ts/components/leftPane/LeftPaneInboxHelper.tsx index c129d0aef465..5db723f340c9 100644 --- a/ts/components/leftPane/LeftPaneInboxHelper.tsx +++ b/ts/components/leftPane/LeftPaneInboxHelper.tsx @@ -23,8 +23,6 @@ export type LeftPaneInboxPropsType = { startSearchCounter: number; }; -/* eslint-disable class-methods-use-this */ - export class LeftPaneInboxHelper extends LeftPaneHelper { private readonly conversations: ReadonlyArray; diff --git a/ts/components/leftPane/LeftPaneSearchHelper.tsx b/ts/components/leftPane/LeftPaneSearchHelper.tsx index 356583517d93..4d0d5200211c 100644 --- a/ts/components/leftPane/LeftPaneSearchHelper.tsx +++ b/ts/components/leftPane/LeftPaneSearchHelper.tsx @@ -43,8 +43,6 @@ const searchResultKeys: Array< 'conversationResults' | 'contactResults' | 'messageResults' > = ['conversationResults', 'contactResults', 'messageResults']; -/* eslint-disable class-methods-use-this */ - export class LeftPaneSearchHelper extends LeftPaneHelper { private readonly conversationResults: MaybeLoadedSearchResultsType; @@ -144,7 +142,6 @@ export class LeftPaneSearchHelper extends LeftPaneHelper, _selectedConversationId: undefined | string, diff --git a/ts/components/leftPane/LeftPaneSetGroupMetadataHelper.tsx b/ts/components/leftPane/LeftPaneSetGroupMetadataHelper.tsx index 34e0ddf3b6ce..db642bbe1d54 100644 --- a/ts/components/leftPane/LeftPaneSetGroupMetadataHelper.tsx +++ b/ts/components/leftPane/LeftPaneSetGroupMetadataHelper.tsx @@ -36,8 +36,6 @@ export type LeftPaneSetGroupMetadataPropsType = { userAvatarData: ReadonlyArray; }; -/* eslint-disable class-methods-use-this */ - export class LeftPaneSetGroupMetadataHelper extends LeftPaneHelper { private readonly groupAvatar: undefined | Uint8Array; diff --git a/ts/context/Bytes.ts b/ts/context/Bytes.ts index 636d0183ebd0..e69a547dd626 100644 --- a/ts/context/Bytes.ts +++ b/ts/context/Bytes.ts @@ -1,8 +1,6 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ - import { Buffer } from 'buffer'; export class Bytes { diff --git a/ts/context/Crypto.ts b/ts/context/Crypto.ts index 8a55eb86c466..be1f8a80cc56 100644 --- a/ts/context/Crypto.ts +++ b/ts/context/Crypto.ts @@ -1,8 +1,6 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ - import { Buffer } from 'buffer'; import type { Decipher } from 'crypto'; import crypto from 'crypto'; diff --git a/ts/jobs/normalMessageSendJobQueue.ts b/ts/jobs/normalMessageSendJobQueue.ts index 6bd900c78a4c..c72b89bb592a 100644 --- a/ts/jobs/normalMessageSendJobQueue.ts +++ b/ts/jobs/normalMessageSendJobQueue.ts @@ -1,8 +1,6 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ - import type PQueue from 'p-queue'; import type { LoggerType } from '../types/Logging'; import { exponentialBackoffMaxAttempts } from '../util/exponentialBackoff'; diff --git a/ts/jobs/reactionJobQueue.ts b/ts/jobs/reactionJobQueue.ts index 10029013f6a7..048ad58d10ab 100644 --- a/ts/jobs/reactionJobQueue.ts +++ b/ts/jobs/reactionJobQueue.ts @@ -40,8 +40,6 @@ const reactionJobData = z.object({ export type ReactionJobData = z.infer; -/* eslint-disable class-methods-use-this */ - export class ReactionJobQueue extends JobQueue { private readonly inMemoryQueues = new InMemoryQueues(); diff --git a/ts/jobs/readSyncJobQueue.ts b/ts/jobs/readSyncJobQueue.ts index 2b28721137e4..182bf92951fb 100644 --- a/ts/jobs/readSyncJobQueue.ts +++ b/ts/jobs/readSyncJobQueue.ts @@ -1,8 +1,6 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ - import * as durations from '../util/durations'; import type { LoggerType } from '../types/Logging'; import { exponentialBackoffMaxAttempts } from '../util/exponentialBackoff'; diff --git a/ts/jobs/removeStorageKeyJobQueue.ts b/ts/jobs/removeStorageKeyJobQueue.ts index 72889a7ac7a8..85c64b0a363d 100644 --- a/ts/jobs/removeStorageKeyJobQueue.ts +++ b/ts/jobs/removeStorageKeyJobQueue.ts @@ -1,6 +1,5 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ import { z } from 'zod'; diff --git a/ts/jobs/reportSpamJobQueue.ts b/ts/jobs/reportSpamJobQueue.ts index cc83cf617602..66b1f502d464 100644 --- a/ts/jobs/reportSpamJobQueue.ts +++ b/ts/jobs/reportSpamJobQueue.ts @@ -1,6 +1,5 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ import * as z from 'zod'; import * as durations from '../util/durations'; diff --git a/ts/jobs/viewSyncJobQueue.ts b/ts/jobs/viewSyncJobQueue.ts index 29659f54415f..e468e67f7e07 100644 --- a/ts/jobs/viewSyncJobQueue.ts +++ b/ts/jobs/viewSyncJobQueue.ts @@ -1,8 +1,6 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ - import * as durations from '../util/durations'; import type { LoggerType } from '../types/Logging'; import { exponentialBackoffMaxAttempts } from '../util/exponentialBackoff'; diff --git a/ts/jobs/viewedReceiptsJobQueue.ts b/ts/jobs/viewedReceiptsJobQueue.ts index 64b2a7141093..e6b2a532aa11 100644 --- a/ts/jobs/viewedReceiptsJobQueue.ts +++ b/ts/jobs/viewedReceiptsJobQueue.ts @@ -1,8 +1,6 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ - import { z } from 'zod'; import * as durations from '../util/durations'; import type { LoggerType } from '../types/Logging'; diff --git a/ts/models/conversations.ts b/ts/models/conversations.ts index cf227caca392..e43694997232 100644 --- a/ts/models/conversations.ts +++ b/ts/models/conversations.ts @@ -1,7 +1,6 @@ // Copyright 2020-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ /* eslint-disable camelcase */ import { compact, isNumber } from 'lodash'; import { batch as batchDispatch } from 'react-redux'; @@ -204,7 +203,6 @@ export class ConversationModel extends window.Backbone private isInReduxBatch = false; - // eslint-disable-next-line class-methods-use-this defaults(): Partial { return { unreadCount: 0, @@ -234,7 +232,6 @@ export class ConversationModel extends window.Backbone return this.get('uuid') || this.get('e164'); } - // eslint-disable-next-line class-methods-use-this getContactCollection(): Backbone.Collection { const collection = new window.Backbone.Collection(); const collator = new Intl.Collator(undefined, { sensitivity: 'base' }); diff --git a/ts/models/messages.ts b/ts/models/messages.ts index 1b73b905028f..f393faa39456 100644 --- a/ts/models/messages.ts +++ b/ts/models/messages.ts @@ -760,7 +760,6 @@ export class MessageModel extends window.Backbone.Model { return `${account}.${device} ${timestamp}`; } - // eslint-disable-next-line class-methods-use-this defaults(): Partial { return { timestamp: new Date().getTime(), @@ -768,7 +767,6 @@ export class MessageModel extends window.Backbone.Model { }; } - // eslint-disable-next-line class-methods-use-this validate(attributes: Record): void { const required = ['conversationId', 'received_at', 'sent_at']; const missing = _.filter(required, attr => !attributes[attr]); @@ -782,7 +780,6 @@ export class MessageModel extends window.Backbone.Model { this.set(attributes); } - // eslint-disable-next-line class-methods-use-this getNameForNumber(number: string): string { const conversation = window.ConversationController.get(number); if (!conversation) { @@ -1264,7 +1261,6 @@ export class MessageModel extends window.Backbone.Model { ); } - // eslint-disable-next-line class-methods-use-this isReplayableError(e: Error): boolean { return ( e.name === 'MessageError' || @@ -2071,7 +2067,6 @@ export class MessageModel extends window.Backbone.Model { }); } - // eslint-disable-next-line class-methods-use-this async copyFromQuotedMessage( quote: ProcessedQuote | undefined, conversationId: string @@ -2145,7 +2140,6 @@ export class MessageModel extends window.Backbone.Model { return result; } - // eslint-disable-next-line class-methods-use-this async copyQuoteContentFromOriginal( originalMessage: MessageModel, quote: QuotedMessageType diff --git a/ts/services/calling.ts b/ts/services/calling.ts index 6048900fc9a8..9adb45050876 100644 --- a/ts/services/calling.ts +++ b/ts/services/calling.ts @@ -1,8 +1,6 @@ // Copyright 2020-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable class-methods-use-this */ - import { desktopCapturer, ipcRenderer } from 'electron'; import type { AudioDevice, diff --git a/ts/test-electron/MessageReceiver_test.ts b/ts/test-electron/MessageReceiver_test.ts index afe89ac8b0f3..ac82035eac89 100644 --- a/ts/test-electron/MessageReceiver_test.ts +++ b/ts/test-electron/MessageReceiver_test.ts @@ -1,9 +1,7 @@ // Copyright 2015-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable - class-methods-use-this, - @typescript-eslint/no-empty-function - */ + +/* eslint-disable @typescript-eslint/no-empty-function */ import { assert } from 'chai'; import { v4 as getGuid } from 'uuid'; diff --git a/ts/test-electron/WebsocketResources_test.ts b/ts/test-electron/WebsocketResources_test.ts index 347a7273f2ed..0d114da826e7 100644 --- a/ts/test-electron/WebsocketResources_test.ts +++ b/ts/test-electron/WebsocketResources_test.ts @@ -1,7 +1,7 @@ // Copyright 2015-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only + /* eslint-disable - class-methods-use-this, no-new, @typescript-eslint/no-empty-function, @typescript-eslint/no-explicit-any diff --git a/ts/test-electron/context/createNativeThemeListener_test.ts b/ts/test-electron/context/createNativeThemeListener_test.ts index faff9dea0fe1..04ce83561c83 100644 --- a/ts/test-electron/context/createNativeThemeListener_test.ts +++ b/ts/test-electron/context/createNativeThemeListener_test.ts @@ -21,7 +21,6 @@ class FakeIPC extends EventEmitter implements MinimalIPC { return this.state; } - // eslint-disable-next-line class-methods-use-this public send() { throw new Error( 'This should not be called. It is only here to satisfy the interface' diff --git a/ts/test-node/jobs/JobQueue_test.ts b/ts/test-node/jobs/JobQueue_test.ts index e0d5e39ac9a2..f2731c8d769b 100644 --- a/ts/test-node/jobs/JobQueue_test.ts +++ b/ts/test-node/jobs/JobQueue_test.ts @@ -1,6 +1,7 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -/* eslint-disable max-classes-per-file, class-methods-use-this */ + +/* eslint-disable max-classes-per-file */ import { assert } from 'chai'; import * as sinon from 'sinon'; diff --git a/ts/textsecure/AccountManager.ts b/ts/textsecure/AccountManager.ts index 7d85b4ef9d49..75210d3b5bd5 100644 --- a/ts/textsecure/AccountManager.ts +++ b/ts/textsecure/AccountManager.ts @@ -4,7 +4,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/ban-types */ /* eslint-disable more/no-then */ -/* eslint-disable class-methods-use-this */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import PQueue from 'p-queue'; import { omit } from 'lodash'; diff --git a/ts/textsecure/MessageReceiver.ts b/ts/textsecure/MessageReceiver.ts index c9b5996b2795..22fafa7293c0 100644 --- a/ts/textsecure/MessageReceiver.ts +++ b/ts/textsecure/MessageReceiver.ts @@ -2,7 +2,6 @@ // SPDX-License-Identifier: AGPL-3.0-only /* eslint-disable no-bitwise */ -/* eslint-disable class-methods-use-this */ /* eslint-disable camelcase */ import { isNumber, map } from 'lodash'; diff --git a/ts/textsecure/OutgoingMessage.ts b/ts/textsecure/OutgoingMessage.ts index 0a8782421ceb..0cee3c0c80b6 100644 --- a/ts/textsecure/OutgoingMessage.ts +++ b/ts/textsecure/OutgoingMessage.ts @@ -2,7 +2,6 @@ // SPDX-License-Identifier: AGPL-3.0-only /* eslint-disable guard-for-in */ -/* eslint-disable class-methods-use-this */ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable more/no-then */ /* eslint-disable no-param-reassign */ diff --git a/ts/textsecure/SendMessage.ts b/ts/textsecure/SendMessage.ts index 057acdb0d321..62fe1558c703 100644 --- a/ts/textsecure/SendMessage.ts +++ b/ts/textsecure/SendMessage.ts @@ -2,7 +2,6 @@ // SPDX-License-Identifier: AGPL-3.0-only /* eslint-disable no-nested-ternary */ -/* eslint-disable class-methods-use-this */ /* eslint-disable more/no-then */ /* eslint-disable no-bitwise */ /* eslint-disable max-classes-per-file */ diff --git a/ts/util/callingTones.ts b/ts/util/callingTones.ts index df3f6d17cab2..719d415b8305 100644 --- a/ts/util/callingTones.ts +++ b/ts/util/callingTones.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Signal Messenger, LLC +// Copyright 2020-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import PQueue from 'p-queue'; @@ -12,7 +12,6 @@ const ringtoneEventQueue = new PQueue({ class CallingTones { private ringtone?: Sound; - // eslint-disable-next-line class-methods-use-this async playEndCall(): Promise { const canPlayTone = window.Events.getCallRingtoneNotification(); if (!canPlayTone) { @@ -55,7 +54,6 @@ class CallingTones { }); } - // eslint-disable-next-line class-methods-use-this async someonePresenting() { const canPlayTone = window.Events.getCallRingtoneNotification(); if (!canPlayTone) { diff --git a/ts/views/conversation_view.ts b/ts/views/conversation_view.ts index 1fe0e64230e7..f4881d441cf8 100644 --- a/ts/views/conversation_view.ts +++ b/ts/views/conversation_view.ts @@ -313,7 +313,6 @@ export class ConversationView extends window.Backbone.View { this.updateAttachmentsView(); } - // eslint-disable-next-line class-methods-use-this events(): Record { return { drop: 'onDrop', @@ -326,7 +325,6 @@ export class ConversationView extends window.Backbone.View { // classname wouldn't be applied when Backbone creates our el. // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - // eslint-disable-next-line class-methods-use-this className(): string { return 'conversation'; } @@ -334,7 +332,6 @@ export class ConversationView extends window.Backbone.View { // Same situation as className(). // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - // eslint-disable-next-line class-methods-use-this id(): string { return `conversation-${this.model.cid}`; } @@ -1005,7 +1002,6 @@ export class ConversationView extends window.Backbone.View { }; } - // eslint-disable-next-line class-methods-use-this async cleanModels( collection: MessageModelCollectionType | Array ): Promise> { @@ -2154,7 +2150,6 @@ export class ConversationView extends window.Backbone.View { this.downloadAttachment({ attachment, timestamp, isDangerous }); } - // eslint-disable-next-line class-methods-use-this async downloadAttachment({ attachment, timestamp, @@ -2753,7 +2748,6 @@ export class ConversationView extends window.Backbone.View { this.listenBack(view); } - // eslint-disable-next-line class-methods-use-this async openConversation( conversationId: string, messageId?: string @@ -2989,7 +2983,6 @@ export class ConversationView extends window.Backbone.View { return true; } - // eslint-disable-next-line class-methods-use-this showSendAnywayDialog( contacts: Array, confirmText?: string @@ -3427,7 +3420,6 @@ export class ConversationView extends window.Backbone.View { window.reduxActions.linkPreviews.removeLinkPreview(); } - // eslint-disable-next-line class-methods-use-this async getStickerPackPreview( url: string, abortSignal: Readonly @@ -3529,7 +3521,6 @@ export class ConversationView extends window.Backbone.View { } } - // eslint-disable-next-line class-methods-use-this async getGroupPreview( url: string, abortSignal: Readonly