Don't attempt to send read receipts for guest accounts

This commit is contained in:
Richard Lewis 2021-07-07 15:18:08 +01:00
parent 8144e66d00
commit fd749ecc2b

View file

@ -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) {