dendrite/appservice
Will Hunt a2773922d2
Send events to appservice based on room membership (#1680)
* Check membership of room

* Use QueryStateAfterEventsResponse

* Fix complexity

* Changes that I made a long time ago

* Rename to appserviceJoinedAtEvent

* Check membership in GetMemberships

* Update QueryMembershipsForRoom

* Tweaks in client API

* Update appserviceJoinedAtEvent

* Comments

* Try QueryMembershipForUser instead

* Undo some changes to client API that shouldn't be needed

* More /event tweaks

* Refactor /event bit

* Go back to QueryMembershipsForRoom because appservices are hard

* Fix bugs in onMessage

* Add comments

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-03-03 16:27:44 +00:00
..
api Fix #1655 by re-adding the appservice alias query (#1660) 2020-12-18 13:33:28 +00:00
consumers Send events to appservice based on room membership (#1680) 2021-03-03 16:27:44 +00:00
inthttp Rehuffle where things are in the internal package (#1122) 2020-06-12 14:55:57 +01:00
query Top-level setup package (#1605) 2020-12-02 17:41:00 +00:00
storage Top-level setup package (#1605) 2020-12-02 17:41:00 +00:00
types Top-level setup package (#1605) 2020-12-02 17:41:00 +00:00
workers Send events to appservice based on room membership (#1680) 2021-03-03 16:27:44 +00:00
appservice.go Graceful shutdowns (#1734) 2021-01-26 12:56:20 +00:00
README.md use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00

Application Service

This component interfaces with external Application Services. This includes any HTTP endpoints that application services call, as well as talking to any HTTP endpoints that application services provide themselves.

Consumers

This component consumes and filters events from the Roomserver Kafka stream, passing on any necessary events to subscribing application services.