You've already forked matrix-js-sdk
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user