From 230e3b4acee3f0802e2b36fca2dd9f1e81c27a19 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 19 Jan 2022 18:19:08 +0000 Subject: [PATCH] Add eslint camelcase ignores & remove unnecessary casts (#2110) Presumbaly casts left over from typescript migration. --- src/client.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index 3930d7f15..6d61f1d43 100644 --- a/src/client.ts +++ b/src/client.ts @@ -2582,8 +2582,10 @@ export class MatrixClient extends EventEmitter { return { algorithm, + /* eslint-disable camelcase */ auth_data, recovery_key, + /* eslint-enable camelcase */ }; } @@ -3651,12 +3653,12 @@ export class MatrixClient extends EventEmitter { const type = localEvent.getType(); logger.log(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`); - localEvent.setTxnId(txnId as string); + localEvent.setTxnId(txnId); localEvent.setStatus(EventStatus.SENDING); // add this event immediately to the local store as 'sending'. if (room) { - room.addPendingEvent(localEvent, txnId as string); + room.addPendingEvent(localEvent, txnId); } // addPendingEvent can change the state to NOT_SENT if it believes