Remove origin field from PDUs

It has been removed from the spec, for details see
https://github.com/matrix-org/matrix-spec/pull/998
This commit is contained in:
Jonas Platte
2022-03-29 23:32:39 +02:00
parent 0450f9d8f7
commit 24bd27a3a9
6 changed files with 1 additions and 26 deletions

View File

@@ -17,9 +17,6 @@ all-features = true
compat = []
unstable-exhaustive-types = []
# Private, only used in test / benchmarking code
__ci = ["ruma-common/unstable-pre-spec"]
[dependencies]
itertools = "0.10.0"
js_int = "0.2.0"

View File

@@ -395,8 +395,6 @@ where
content,
redacts: None,
unsigned: btreemap! {},
#[cfg(not(feature = "__ci"))]
origin: "foo".into(),
auth_events,
prev_events,
depth: uint!(0),

View File

@@ -403,8 +403,6 @@ pub fn to_init_pdu_event(
content,
redacts: None,
unsigned: BTreeMap::new(),
#[cfg(not(feature = "__ci"))]
origin: "foo".into(),
auth_events: vec![],
prev_events: vec![],
depth: uint!(0),
@@ -443,8 +441,6 @@ where
content,
redacts: None,
unsigned: BTreeMap::new(),
#[cfg(not(feature = "__ci"))]
origin: "foo".into(),
auth_events,
prev_events,
depth: uint!(0),