Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Unspecced redacted_by field in unsigned #8764

Open
joepie91 opened this issue Jul 20, 2020 · 6 comments
Open

Unspecced redacted_by field in unsigned #8764

joepie91 opened this issue Jul 20, 2020 · 6 comments
Labels
A-Spec-Compliance places where synapse does not conform to the spec

Comments

@joepie91
Copy link

Ran into the following event today:

{
	"content": {
		"membership": "join"
	},
	"origin_server_ts": 1595256121167,
	"sender": "@redacted_user_1:example.com",
	"state_key": "@redacted_user_1:example.com",
	"type": "m.room.member",
	"unsigned": {
		"redacted_by": "$redacted_id_1",
		"redacted_because": {
			"content": {},
			"origin_server_ts": 1595261803914,
			"redacts": "$redacted_id_2",
			"sender": "@redacted_user_2:example.com",
			"type": "m.room.redaction",
			"unsigned": {
				"age": 23764322
			},
			"event_id": "$redacted_id_1"
		}
	},
	"event_id": "$redacted_id_2"
}

This event contains a redacted_by property in the unsigned data, but the client-server spec makes no mention of such a field, it only mentions redacted_because.

@richvdh
Copy link
Member

richvdh commented Jul 21, 2020

as a general rule, the presence of a field in a response from synapse does not necessarily mean it should be added to the spec.

I'm more inclined to consider this a bug in synapse, though not a high priority one.

@joepie91
Copy link
Author

Hm. I was interpreting this to be an intended (spec) feature, to reduce bandwidth usage by sending only the event ID rather than the whole event (as is the case for redacted_because) - hence filing it here first. But perhaps that wasn't the intention :)

@richvdh richvdh transferred this issue from matrix-org/matrix-spec-proposals Nov 16, 2020
@richvdh
Copy link
Member

richvdh commented Nov 16, 2020

(moved this issue from matrix-doc to synapse)

@richvdh richvdh added the A-Spec-Compliance places where synapse does not conform to the spec label Nov 16, 2020
@Zocker1999NET

This comment was marked as resolved.

@clokep
Copy link
Member

clokep commented Nov 28, 2023

That says:

Servers should include a copy of the m.room.redaction event under unsigned as redacted_because when serving the redacted event to clients.

Note the redacted_because instead of redacted_by, so I think there's some sort of inconsistency still?

@Zocker1999NET

This comment was marked as resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Spec-Compliance places where synapse does not conform to the spec
Projects
None yet
Development

No branches or pull requests

4 participants