1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Add eslint camelcase ignores & remove unnecessary casts (#2110)

Presumbaly casts left over from typescript migration.
This commit is contained in:
David Baker
2022-01-19 18:19:08 +00:00
committed by GitHub
parent a50a627300
commit 230e3b4ace

View File

@@ -2582,8 +2582,10 @@ export class MatrixClient extends EventEmitter {
return { return {
algorithm, algorithm,
/* eslint-disable camelcase */
auth_data, auth_data,
recovery_key, recovery_key,
/* eslint-enable camelcase */
}; };
} }
@@ -3651,12 +3653,12 @@ export class MatrixClient extends EventEmitter {
const type = localEvent.getType(); const type = localEvent.getType();
logger.log(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`); logger.log(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`);
localEvent.setTxnId(txnId as string); localEvent.setTxnId(txnId);
localEvent.setStatus(EventStatus.SENDING); localEvent.setStatus(EventStatus.SENDING);
// add this event immediately to the local store as 'sending'. // add this event immediately to the local store as 'sending'.
if (room) { if (room) {
room.addPendingEvent(localEvent, txnId as string); room.addPendingEvent(localEvent, txnId);
} }
// addPendingEvent can change the state to NOT_SENT if it believes // addPendingEvent can change the state to NOT_SENT if it believes