Skip to content

Commit fc8cd39

Browse files
committed
Optionalize opts
1 parent 589c66b commit fc8cd39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3863,7 +3863,7 @@ export class MatrixClient extends EventEmitter {
38633863
* @return {Promise} Resolves: to an empty object
38643864
* @return {module:http-api.MatrixError} Rejects: with an error response.
38653865
*/
3866-
public async sendReadReceipt(event: MatrixEvent, opts: { hidden?: boolean }, callback?: Callback): Promise<{}> {
3866+
public async sendReadReceipt(event: MatrixEvent, opts?: { hidden?: boolean }, callback?: Callback): Promise<{}> {
38673867
if (typeof (opts) === 'function') {
38683868
callback = opts as any as Callback; // legacy
38693869
opts = {};

0 commit comments

Comments
 (0)