bridgev2/matrix: disable using inbox state endpoint

This commit is contained in:
Tulir Asokan 2024-08-01 22:13:14 +03:00
commit 7402f5a705

View file

@ -134,7 +134,7 @@ func (as *ASIntent) MarkRead(ctx context.Context, roomID id.RoomID, eventID id.E
req.FullyRead = eventID
req.BeeperFullyReadExtra = extraData
}
if as.Matrix.IsCustomPuppet && as.Connector.SpecVersions.Supports(mautrix.BeeperFeatureInboxState) {
if as.Matrix.IsCustomPuppet && as.Connector.SpecVersions.Supports(mautrix.BeeperFeatureInboxState) && as.Connector.Config.Homeserver.Software != bridgeconfig.SoftwareHungry {
err = as.Matrix.SetBeeperInboxState(ctx, roomID, &mautrix.ReqSetBeeperInboxState{
//MarkedUnread: ptr.Ptr(false),
ReadMarkers: &req,