From 5d5caa3b357b20729c6460cd30c5cdd3e43f2cfc Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Thu, 8 Jul 2021 00:27:54 +0100 Subject: [PATCH] Mock a response object --- 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 2d5703dd..8e9d72b1 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 Promise.resolve(() => {}); + return {response: () => Promise.resolve(null)}; } passwordLogin(username, password, initialDeviceDisplayName, options = null) {