You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-13 07:42:14 +03:00
Appease the linter
This commit is contained in:
@@ -1007,7 +1007,7 @@ MatrixBaseApis.prototype.setRoomReadMarkersHttpRequest =
|
|||||||
const content = {
|
const content = {
|
||||||
"m.fully_read": rmEventId,
|
"m.fully_read": rmEventId,
|
||||||
"m.read": rrEventId,
|
"m.read": rrEventId,
|
||||||
"m.hidden": Boolean(opts ? opts.hidden : false)
|
"m.hidden": Boolean(opts ? opts.hidden : false),
|
||||||
};
|
};
|
||||||
|
|
||||||
return this._http.authedRequest(
|
return this._http.authedRequest(
|
||||||
|
|||||||
@@ -2269,7 +2269,9 @@ MatrixClient.prototype.sendReadReceipt = async function(event, opts, callback) {
|
|||||||
* <b>This property is unstable and may change in the future.</b>
|
* <b>This property is unstable and may change in the future.</b>
|
||||||
* @return {module:client.Promise} Resolves: the empty object, {}.
|
* @return {module:client.Promise} Resolves: the empty object, {}.
|
||||||
*/
|
*/
|
||||||
MatrixClient.prototype.setRoomReadMarkers = async function(roomId, rmEventId, rrEvent, opts) {
|
MatrixClient.prototype.setRoomReadMarkers = async function(
|
||||||
|
roomId, rmEventId, rrEvent, opts,
|
||||||
|
) {
|
||||||
const room = this.getRoom(roomId);
|
const room = this.getRoom(roomId);
|
||||||
if (room && room.hasPendingEvent(rmEventId)) {
|
if (room && room.hasPendingEvent(rmEventId)) {
|
||||||
throw new Error(`Cannot set read marker to a pending event (${rmEventId})`);
|
throw new Error(`Cannot set read marker to a pending event (${rmEventId})`);
|
||||||
|
|||||||
Reference in New Issue
Block a user