Devin Ragotzy
|
d7144e63b7
|
Update resolve methods docs for event_map
|
2021-01-24 20:44:41 -05:00 |
|
Devin Ragotzy
|
37bff47a8e
|
Add clearer docs to auth_check
|
2021-01-24 20:44:41 -05:00 |
|
Devin Ragotzy
|
47b19fdc15
|
Remove StateStore trait, caller must collect all events needed
|
2021-01-24 20:44:41 -05:00 |
|
Devin Ragotzy
|
f4772e0fcb
|
Make auth_events arg for auth_check be a ref, cleanup
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
b0ee71e401
|
Make event_map &mut and take fields in membership_change
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
94be5b0fef
|
Update ruma and serde to latest
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
da14be3000
|
Fix tests to work with PDU event trait
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
9721042198
|
Turn pdu into trait to avoid having our own PDU type
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
05a4dd1bf0
|
Convert state-res to use possible ruma::ServerPdu
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
5299679c21
|
Use ruma::ServerPdu instead of local type
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
282270ed4f
|
Start work on db less state-res
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
611d1a3d9c
|
Add tests for resolve_incoming
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
dd2a115b94
|
Clean up tests, move setup into its own file
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
33bb319b45
|
Fix failing tests because clean overwrites resolved_state in resolve fn
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
55e889a11f
|
Add method to resolve batches of conflicted events
|
2021-01-05 15:43:55 -05:00 |
|
Devin Ragotzy
|
dca71f76ee
|
Update readme example Option<String> -> String
|
2020-12-13 09:12:14 -05:00 |
|
Devin Ragotzy
|
c6a108631d
|
Add apply_event function testing if a given event will pass auth
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
ea7dc52daf
|
Bump ruma to be even with conduit
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
6c26da97a6
|
Bump deps and remove js_int now imported from ruma
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
89cfb1967a
|
Update ruma to latest, StateEvent is still enum without Stub
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
0e9332c04f
|
Add text file to keep track of benches from time to time
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
db3f68626d
|
Add constructor from CanonicalJsonObject to StateEvent
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
b04c74ce88
|
Add more comments and cleanup out of date comments
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
f45cb2963a
|
Fix formatting and grouping of state_event items
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
471ae2cbb4
|
Make from_id_value take 2 args not tuple
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
d5870c6cc0
|
Fix serialization test adding event_id field to the JSON string output
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
d0d2f77998
|
Add from_id_value associated method to create a StateEvent from id+json
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
5e7f60e5d9
|
Add gen-eventid feature to generate EventId every deserialize
So we do not rely on any found EventId, this makes all the tests break.
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
ac4ab7ac06
|
Update tests to new StateEvent using Pdu::RoomV3Pdu
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
6661771b31
|
StateEvent now holds EventId in variant + custom ser/de
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
420b7c00e8
|
Fix travis CI test by turning on features
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
ac9282add6
|
Allow get_power_level_for_sender to soft fail when eventId not found
Hardcode RoomVersion6 into the eventId hashing
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
c3ba1e33eb
|
Use unstable-join branch of ruma from my fork
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
26b0f738a5
|
Fix unstable-pre-spec for federation membership join
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
11e8856a91
|
Fix tests after state_key = String from Option<String>
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
d19c0d4129
|
Rebase with timos changes and update/pin ruma
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
ee6aa35612
|
StateEvent's event_id method must return owned EventId
|
2020-12-11 18:04:41 -08:00 |
|
Timo Kösters
|
369703a6fa
|
Expect all state events to have a state key
|
2020-12-11 18:04:41 -08:00 |
|
Timo Kösters
|
776c476f3c
|
Skip events that fail auth
|
2020-12-11 18:04:41 -08:00 |
|
Timo Kösters
|
33232f0a63
|
Disable buggy auth_events check
|
2020-12-11 18:04:41 -08:00 |
|
Timo Kösters
|
ad4fb6420a
|
Various improvements
|
2020-12-11 18:04:41 -08:00 |
|
Timo Kösters
|
f587b88a60
|
Fixes
|
2020-12-11 18:04:41 -08:00 |
|
Devin Ragotzy
|
acd829336e
|
If no power_level event default to 0 power_level for user
|
2020-09-08 16:59:29 -04:00 |
|
Devin Ragotzy
|
8ca1726e98
|
Remove RedactAllowed enum in favor of bool
|
2020-09-01 15:14:09 -04:00 |
|
Devin Ragotzy
|
3cc4ae2bf7
|
Remove the last few synapse-ism using only spec event auth
|
2020-08-31 14:53:20 -04:00 |
|
Devin Ragotzy
|
1eb89941b7
|
Rename power_event -> control_event and add more docs
|
2020-08-31 07:21:30 -04:00 |
|
Devin Ragotzy
|
8dbd9aae0b
|
Add error type, more docs, and conduit sorting test
Not resolve sorting just topo/mainline
|
2020-08-29 16:33:40 -04:00 |
|
q-b
|
e3de44ef2f
|
Fix StateStore get_event() signature in README
5f77bc11a2
|
2020-08-29 15:18:03 -04:00 |
|
Devin Ragotzy
|
394d26744a
|
Use own Error type for all errors
|
2020-08-27 20:03:19 -04:00 |
|
Devin Ragotzy
|
b846aec94a
|
Replace membership auth with timo's logic
|
2020-08-27 15:46:36 -04:00 |
|