dendrite/src/github.com/matrix-org/dendrite
Andrew Morgan 04551becb4
Filter Roomserver Events Based on Application Service (#467)
* Compile room and alias namespace regexs

We'll be needing these for event filtering in the appservice component.

Signed-off-by: Andrew Morgan <andrewm@matrix.org>

* App service filters roomserver events

Doing so based on namespace regexes that each app service has defined.

To get the aliases for a roomID a new aliasAPI endpoint was defined,
GetAliasesFromRoomID, which does exactly what it says on the tin.

Next step is to queue events to be sent off to each homeserver.

* Additionally filter state events for app services

* Fixed context, logging, derps, config handling

* Prevented user from creating more than one regex per namespace type

Got caught out by realizing I had an extra '-' in the config file. This
prevents anyone from making the same mistake :)

* Removed exclusive RoomID namespace regex, as we won't need to check
upon room creation if the ID is reserved exclusively by an AS (as this
is silly and horribly inefficient).

* Fixed all else mentioned
2018-05-30 13:43:13 +01:00
..
appservice Filter Roomserver Events Based on Application Service (#467) 2018-05-30 13:43:13 +01:00
clientapi Filter Roomserver Events Based on Application Service (#467) 2018-05-30 13:43:13 +01:00
cmd Add Application Service component (#462) 2018-05-24 13:54:42 +01:00
common Filter Roomserver Events Based on Application Service (#467) 2018-05-30 13:43:13 +01:00
federationapi Filter Roomserver Events Based on Application Service (#467) 2018-05-30 13:43:13 +01:00
federationsender Factor out component setup from commands (#384) 2018-01-02 10:26:56 +00:00
mediaapi fix probable bugs, package names and keywords used as identifiers (#428) 2018-04-20 15:50:44 +01:00
publicroomsapi Use http.Status* and http.Method* where appropriate (#417) 2018-03-13 15:55:45 +00:00
roomserver Filter Roomserver Events Based on Application Service (#467) 2018-05-30 13:43:13 +01:00
syncapi Use http.Status* and http.Method* where appropriate (#417) 2018-03-13 15:55:45 +00:00