From 26ec4853e78b2768ca73c25024bf31183fc64fc4 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Thu, 8 Jul 2021 00:13:03 +0100 Subject: [PATCH] Always resolve with a promise --- src/matrix/net/HomeServerApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/net/HomeServerApi.js b/src/matrix/net/HomeServerApi.js index 30d036cb..2d5703dd 100644 --- a/src/matrix/net/HomeServerApi.js +++ b/src/matrix/net/HomeServerApi.js @@ -135,7 +135,7 @@ export class HomeServerApi { return this._post(`/rooms/${encodeURIComponent(roomId)}/receipt/${encodeURIComponent(receiptType)}/${encodeURIComponent(eventId)}`, {}, {}, options); } - return () => {}; + return Promise.resolve(() => {}); } passwordLogin(username, password, initialDeviceDisplayName, options = null) {