Commit Graph

657 Commits (0862fed2a89723e8aa6a4df9f1dbad975a7fbffc)

Author SHA1 Message Date
Erik Johnston ed877d6585 Remove debug logging 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
Kegan Dougal fd40d992ad PEP8-ify 10 years ago
Kegan Dougal c7783d6fee Notify ASes for events sent by other users in a room which an AS user is a part of. 10 years ago
Mark Haines 84a769cdb7 Fix code-style 10 years ago
Mark Haines b085fac735 Code-style fixes 10 years ago
Erik Johnston d94f682a4c During room intial sync, only calculate current state once. 10 years ago
Kegan Dougal f7cac2f7b6 Fix bugs so lazy room joining works as intended. 10 years ago
Kegan Dougal ac3183caaa Register a user account for the AS when the AS registers. Add 'sender' column to AS table. 10 years ago
Matthew Hodgson 37b6b880ef don't give up if we can't create default avatars during tests 10 years ago
Matthew Hodgson 582019f870 ...and here's the actual impl. git fail. 10 years ago
Kegan Dougal 73a680b2a8 Add errcodes for appservice registrations. 10 years ago
Mark Haines 20db147ef3 SYN-258: get_recent_events_for_room only accepts stream tokens, convert the topological token to a stream token before passing it to get_recent_events_for_room 10 years ago
Mark Haines 55a186485c SYN-258: get_recent_events_for_room only accepts stream tokens, convert the topological token to a stream token before passing it to get_recent_events_for_room 10 years ago
Erik Johnston cc0532a4bf Explicitly list the RejectedReasons that we can prove 10 years ago
Erik Johnston e890ce223c Don't query auth if the only difference is events that were rejected due to auth. 10 years ago
Erik Johnston c78b5fb1f1 Make seen_ids a set 10 years ago
Kegan Dougal 0995810273 Pyflakes: unused variable. 10 years ago
Kegan Dougal c3ae8def75 Grant ASes the ability to delete aliases in their own namespace. 10 years ago
Kegan Dougal e426df8e10 Grant ASes the ability to create alias in their own namespace. 10 years ago
Erik Johnston 3737329d9b Handle the fact the list.remove raises if element doesn't exist 10 years ago
Kegan Dougal 0227618d3c Add m.login.application_service registration procedure. 10 years ago
Kegan Dougal 11e6b3d18b Dependency inject ApplicationServiceApi when creating ApplicationServicesHandler. 10 years ago
Kegan Dougal cab4c73088 Prevent user IDs in AS namespaces being created/deleted by humans. 10 years ago
Kegan Dougal e9484d6a95 Prevent aliases in AS namespaces being created/deleted by users. Check with ASes when queried for room aliases via federation. 10 years ago
Kegan Dougal c71456117d Fix user query checks. HS>AS pushing now works. 10 years ago
Erik Johnston e1515c3e91 Pass through list of room hosts from room alias query to federation so that it can retry against different room hosts 10 years ago
Kegan Dougal 51d63ac329 Glue AS work to general event notifications. Add more exception handling when poking ASes. 10 years ago
Erik Johnston 26a041541b SYN-202: Log as WARN the 404 'Presence information not visible' errors instead of as ERROR since they were spamming the logs 10 years ago
Kegan Dougal b932600653 Add unknown room alias check. Call it from directory_handler.get_association 10 years ago
Kegan Dougal f0c730252f Add unknown user ID check. Use store.get_aliases_for_room(room_id) when searching for services by alias. 10 years ago
Kegan Dougal 27091f146a Add hs_token column and generate a different token f.e application service. 10 years ago
Kegan Dougal a1a4960baf Impl push_bulk function 10 years ago
Kegan Dougal 96d4bf9012 Modify API for SimpleHttpClient.get_json and update usages. 10 years ago
Kegan Dougal aa8cce58bf Add query_user/alias APIs. 10 years ago
Erik Johnston ae46f10fc5 Apply sanity to the transport client interface. Convert 'make_join' and 'send_join' to accept iterables of destinations 10 years ago
Erik Johnston 95e2d2d36d When returning lists of servers from alias lookups, put the current server first in the list 10 years ago
Erik Johnston 650e32d455 Change context.auth_events to what the auth_events would be bases on context.current_state, rather than based on the auth_events from the event. 10 years ago
Kegan Dougal 525a218b2b Begin to add unit tests for appservice glue and regex testing. 10 years ago
Kegan Dougal 17753f0c20 Add stub ApplicationServiceApi and glue it with the handler. 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 7dd1c5c542 Neaten the handling of state and auth_chain up a bit 10 years ago
Kegan Dougal 94a5db9f4d Add appservice package and move ApplicationService into it. 10 years ago
Erik Johnston 6efd4d1649 Don't completely die if get auth_chain or querying auth_chain requests fail 10 years ago
Erik Johnston 77a076bd25 Set combinations is | and not + 10 years ago
Kegan Dougal f2c039bfb9 Implement restricted namespace checks. Begin fleshing out the main hook for notifying application services. 10 years ago
Erik Johnston fed29251d7 Spelling 10 years ago
Kegan Dougal a060b47b13 Add namespace constants. Add restrict_to option to limit namespace checks. 10 years ago
Kegan Dougal 197f3ea4ba Implement regex checks for app services. 10 years ago
Erik Johnston 06c34bfbae Give exception better message 10 years ago