ruma: Expose missing ruma-events compat features
This commit is contained in:
parent
6da56dc541
commit
48a1c89c0a
@ -112,6 +112,7 @@ compat-user-id = ["ruma-common/compat-user-id"]
|
||||
compat-empty-string-null = [
|
||||
"ruma-common/compat-empty-string-null",
|
||||
"ruma-client-api?/compat-empty-string-null",
|
||||
"ruma-events?/compat-empty-string-null",
|
||||
"ruma-federation-api?/compat-empty-string-null",
|
||||
]
|
||||
# Allow certain fields to be `null` for compatibility, treating that the same as
|
||||
@ -119,7 +120,10 @@ compat-empty-string-null = [
|
||||
compat-null = ["ruma-common/compat-null"]
|
||||
# Allow certain fields to be absent even though the spec marks them as
|
||||
# mandatory. Deserialization will yield a default value like an empty string.
|
||||
compat-optional = ["ruma-common/compat-optional"]
|
||||
compat-optional = [
|
||||
"ruma-common/compat-optional",
|
||||
"ruma-events?/compat-optional",
|
||||
]
|
||||
# Unset avatars by sending an empty string, same as what Element Web does, c.f.
|
||||
# https://github.com/matrix-org/matrix-spec/issues/378#issuecomment-1055831264
|
||||
compat-unset-avatar = ["ruma-client-api?/compat-unset-avatar"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user