From fd749ecc2b0a7c98515cc462d1856265ed9f2897 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Wed, 7 Jul 2021 15:18:08 +0100 Subject: [PATCH] Don't attempt to send read receipts for guest accounts --- src/matrix/net/HomeServerApi.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/matrix/net/HomeServerApi.js b/src/matrix/net/HomeServerApi.js index e06fb2d4..f8c09804 100644 --- a/src/matrix/net/HomeServerApi.js +++ b/src/matrix/net/HomeServerApi.js @@ -131,8 +131,10 @@ export class HomeServerApi { } receipt(roomId, receiptType, eventId, options = null) { - return this._post(`/rooms/${encodeURIComponent(roomId)}/receipt/${encodeURIComponent(receiptType)}/${encodeURIComponent(eventId)}`, - {}, {}, options); + if(!this._isGuestAccount()) { + return this._post(`/rooms/${encodeURIComponent(roomId)}/receipt/${encodeURIComponent(receiptType)}/${encodeURIComponent(eventId)}`, + {}, {}, options); + } } passwordLogin(username, password, initialDeviceDisplayName, options = null) {