1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-06 12:02:40 +03:00
This commit is contained in:
Michael Telatynski
2021-08-10 10:22:40 +01:00
parent 0ad5ef4e9b
commit 1bcec53c6b
3 changed files with 2 additions and 3 deletions

View File

@@ -18,8 +18,6 @@ limitations under the License.
/** @module interactive-auth */
import url from "url";
import * as utils from "./utils";
import { logger } from './logger';
import { MatrixClient } from "./client";

View File

@@ -21,7 +21,6 @@ limitations under the License.
import { EventContext } from "./event-context";
import { EventMapper } from "../event-mapper";
import { IResultContext, ISearchResult } from "../@types/search";
import { IRoomEvent } from "../sync-accumulator";
export class SearchResult {
/**

View File

@@ -62,6 +62,7 @@ export class MatrixScheduler<T = ISendEventResponse> {
* @return {Number}
* @see module:scheduler~retryAlgorithm
*/
// eslint-disable-next-line @typescript-eslint/naming-convention
public static RETRY_BACKOFF_RATELIMIT(event: MatrixEvent, attempts: number, err: MatrixError): number {
if (err.httpStatus === 400 || err.httpStatus === 403 || err.httpStatus === 401) {
// client error; no amount of retrying with save you now.
@@ -97,6 +98,7 @@ export class MatrixScheduler<T = ISendEventResponse> {
* @return {string}
* @see module:scheduler~queueAlgorithm
*/
// eslint-disable-next-line @typescript-eslint/naming-convention
public static QUEUE_MESSAGES(event: MatrixEvent) {
// enqueue messages or events that associate with another event (redactions and relations)
if (event.getType() === EventType.RoomMessage || event.hasAssocation()) {