Commit Graph

78 Commits (598317927cb8f741528d639f3ce875299fde478e)

Author SHA1 Message Date
Erik Johnston 9e25443db8 Move to storing state_groups_state as deltas 8 years ago
Erik Johnston c10cb581c6 Correctly handle the difference between prev and current state 8 years ago
Erik Johnston 54cc69154e Make None optional 8 years ago
Erik Johnston a3dc1e9cbe Replace context.current_state with context.current_state_ids 8 years ago
Erik Johnston 17f4f14df7 Pull out event ids rather than full events for state 8 years ago
Erik Johnston 1d40373c9d Include prev_content in redacted state events 8 years ago
Mark Haines 57fa1801c3 Add sensible __eq__ operators inside the tests. 9 years ago
Mark Haines 60ec9793fb Add tests for get_latest_event_ids_in_room and get_current_state 9 years ago
Mark Haines 76503f95ed Remove the is_new_state argument to persist event. 9 years ago
Mark Haines 1e25f62ee6 Use a stream id generator to assign state group ids 9 years ago
Erik Johnston acdfef7b14 Intern all the things 9 years ago
Erik Johnston f96526ffc2 Intern sender, event_id and room_id in events 9 years ago
Erik Johnston fe9794706a Intern type and state_key on events 9 years ago
Erik Johnston 58e207cd77 Don't assume existence of event_id in __str__ 9 years ago
Erik Johnston 7b0d846407 Atomically persit push actions when we persist the event 9 years ago
Erik Johnston 2068678b8c Make Event objects behave more like dicts 9 years ago
Matthew Hodgson 6c28ac260c copyrights 9 years ago
Mark Haines 306415391d Only add the user_id if the sender is present 9 years ago
Mark Haines bde8d78b8a Copy rather than move the fields to shuffle between a v1 and a v2 event. 9 years ago
Richard van der Hoff 3c3fc6b268 Flatten the /sync response to remove the event_map 9 years ago
Mark Haines d58edd98e9 Update the other place check_joined_room is called 9 years ago
Paul "LeoNerd" Evans 243a79d291 Surely we don't need to preserve 'events_default' twice 9 years ago
Erik Johnston 49ae42bbe1 Bundle in some room state in the unsigned bit of the invite when sending to invited servers 9 years ago
Erik Johnston 1f7642efa9 Fix bug where we didn't correctly serialize the redacted_because key over federation 9 years ago
Erik Johnston fb47c3cfbe Rename key and values for m.room.history_visibility. Support 'invited' value 10 years ago
Erik Johnston 00ab882ed6 Add m.room.history_visibility to list of auth events 10 years ago
Erik Johnston ca580ef862 Don't copy twice 10 years ago
Erik Johnston a7b65bdedf Add config option to turn off freezing events. Use new encode_json api and ujson.loads 10 years ago
Paul "LeoNerd" Evans 1b988b051b Store the rejected reason in (Frozen)Event structs 10 years ago
Erik Johnston b2e6ee5b43 Remove concept of context.auth_events, instead use context.current_state 10 years ago
Erik Johnston 7eef84a95b pyflakes 10 years ago
Erik Johnston ddb816cf60 Don't unfreeze when using FreezeEvent.get_dict, as we are using a JSONEncoder that understands FrozenDict 10 years ago
Erik Johnston e8d4a31475 Fix prune_events to work with nested dicts 10 years ago
Erik Johnston c0462dbf15 Rearrange persist_event so that do all the queries that need to be done before returning early if we have already persisted that event. 10 years ago
Erik Johnston 9bace3a367 Actually, the old prune_event function was non-deterministic, so no point keeping it around :( 10 years ago
Erik Johnston 0dd3aea319 Keep around the old (buggy) version of the prune_event function so that we can use it to check signatures for events on old servers 10 years ago
Erik Johnston c1c7b39827 Fix bug where we changes in outlier in metadata dict propogated to other events 10 years ago
Erik Johnston 78015948a7 Initial implementation of auth conflict resolution 10 years ago
Mark Haines b9c442c85c Include transaction ids in unsigned section of events in the sync results for the clients that made those requests 10 years ago
Mark Haines 1b4a164c02 Add support for formatting events in the way a v2 client expects 10 years ago
Mark Haines a56008842b Start implementing incremental initial sync 10 years ago
Mark Haines 436513068d Start implementing the non-incremental sync portion of the v2 /sync API 10 years ago
Mark Haines 7f6f3f9d62 Pass the current time to serialize event, rather than passing an 10 years ago
Erik Johnston b1b85753d7 Add support for storing rejected events in EventContext and data stores 10 years ago
Mark Haines 3891597eb3 Remove unused functions 10 years ago
Erik Johnston 39585bf556 Insert 'age' into top level when returning events to clients 10 years ago
Kegan Dougal edb557b2ad Return the raw federation event rather than adding extra keys for federation data. 10 years ago
Kegan Dougal 5720ab59e0 Add 'raw' query parameter to expose the event graph and signatures to savvy clients. 10 years ago
Erik Johnston a039e2544c Remove unused import 10 years ago
Erik Johnston dfa05f0cd6 Optimize FrozenEvent creation 10 years ago