Commit Graph

125 Commits (24e4c484681b7e1538a3812b91b949430b898b26)

Author SHA1 Message Date
Erik Johnston 70899d3ab2 Rename deletions to redactions 10 years ago
Erik Johnston 7d9a84a445 Make deleting deletes not undelete 10 years ago
Erik Johnston 1e6c5b205c Fix bug where we didn't correctly pull out the event_id of the deletion 10 years ago
Erik Johnston 4354590a69 Add v4 deltas to current sql. 10 years ago
Erik Johnston efea61dc50 Rename 'pruned' to 'pruned_because' 10 years ago
Erik Johnston bc250a6afa SYN-12: Implement auth for deletion by adding a 'delete_level' on the ops levels event 10 years ago
Erik Johnston b99f6eb904 Make sure we don't persist the 'pruned' key 10 years ago
Erik Johnston 78af6bbb98 Add m.room.deletion. If an event is deleted it will be returned to clients 'pruned', i.e. all client specified keys will be removed. 10 years ago
Erik Johnston 231afe464a Add a deletions table 10 years ago
Erik Johnston 28bcd01e8d SYN-47: Fix bug where we still returned events for rooms we had left. 10 years ago
Erik Johnston 59516a8bb1 Correctly handle receiving 'missing' Pdus from federation, rather than just discarding them. 10 years ago
Erik Johnston 5bd9369a62 Correctly handle the 'age' key in events and pdus 10 years ago
Erik Johnston 14975ce5bc Fix bug where we relied on the current_state_events being updated when we are handling type specific persistence 10 years ago
Erik Johnston 667e747ed1 Fix bug where we no longer stored user_id on Pdus 10 years ago
Erik Johnston 39e3fc69e5 Make the state resolution use actual power levels rather than taking them from a Pdu key. 10 years ago
Erik Johnston b42fe05c51 Fix bug where we incorrectly removed a remote host from the list of hosts in a room when any user from that host left that room even if they weren't the last user from that host in that room 10 years ago
Erik Johnston ca1ae7cf9b Fix bug where we didn't return a tuple when expected. 10 years ago
Paul "LeoNerd" Evans aa525e4a63 More accurate docs / clearer paramter names in RoomMemberStore 10 years ago
Paul "LeoNerd" Evans a87eac4308 Revert recent changes to RoomMemberStore 10 years ago
Paul "LeoNerd" Evans a840ff8f3f Now don't need the other logger.debug() call in _execute 10 years ago
Paul "LeoNerd" Evans 1c20249884 Logging of all SQL queries via the 'synapse.storage.SQL' logger 10 years ago
Paul "LeoNerd" Evans e53d77b501 Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool 10 years ago
Paul "LeoNerd" Evans 249e8f2277 Add a better _store_room_member_txn() method that takes separated fields instead of an event object; also add FIXME comment about a big bug in the logic 10 years ago
Paul "LeoNerd" Evans aaf9ab68c6 Rename _store_room_member_txn to _store_room_member_from_event_txn so we can create another, more sensible function of that name 10 years ago
Paul "LeoNerd" Evans 55397f6347 prepare_database() on db_conn, not plain name, so we can pass in the connection from outside 10 years ago
Paul "LeoNerd" Evans ce55a8cc4b Move database preparing code out of homserver.py into storage where it belongs 10 years ago
Erik Johnston a75f8686ba Fix bug where we used an unbound local variable if we ended up rolling back the persist_event transaction 10 years ago
Erik Johnston e062f2dfa8 Apparently we can't do txn.rollback(), so raise and catch an exception instead. 10 years ago
Erik Johnston 83ce57302d Fix bug in state handling where we incorrectly identified a missing pdu. Update tests to catch this case. 10 years ago
Erik Johnston c0577ea87a Rollback if we try and insert duplicate events 10 years ago
Erik Johnston 781ff713ba When getting a state event also include the previous content 10 years ago
Erik Johnston 9dd4570b68 Generate m.room.aliases event when the HS creates a room alias 10 years ago
Paul "LeoNerd" Evans d703e712f7 Add support to _simple_insert() to do INSERT OR REPLACE 10 years ago
Matthew Hodgson 8a7c1d6a00 fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch. 10 years ago
Paul "LeoNerd" Evans 756e171ad0 Store SQL DDL deltas as well; attempt to upgrade the database on startup if it's too old 10 years ago
Paul "LeoNerd" Evans da3e04df8b Rename the 'do_users_share_a_room' to something slightly less verb-sounding 10 years ago
Mark Haines c6eafdfbaf Add copyright notices and fix pyflakes errors 10 years ago
Erik Johnston 4b8244fbf8 Fix bug where we didn't correctly store the ops power levels event. 10 years ago
Erik Johnston b8ab9f1c0a Add all the necessary checks to make banning work. 10 years ago
Erik Johnston db7109c43b Add beginnings of ban support. 10 years ago
Mark Haines 9ea1de432d Fix homeserver config parsing 10 years ago
Erik Johnston 865469f233 Implement power level lists, default power levels and send_evnet_level/add_state_level events. 10 years ago
Erik Johnston 1118f02689 Start adding storage for new events. 10 years ago
Erik Johnston ee06023573 Get the equalities right. 10 years ago
Mark Haines d7ae9b90a0 Add store for server certificates and keys 10 years ago
Paul "LeoNerd" Evans 2c7c12bc6e Initial room event stream token must be s0, not s1, or everyone will miss the very first room event 10 years ago
Mark Haines f54b70520a Return the store_id from persist_event 10 years ago
Mark Haines b30358f439 add _get_room_member, fix datastore methods 10 years ago
Mark Haines a03c7f27a8 Fill out prev_events before calling persist_event 10 years ago
Mark Haines 474dcecb11 Remove unused populate_previous_pdus 10 years ago