summary refs log tree commit diff
path: root/develop/modules/presence_router_callbacks.html
diff options
context:
space:
mode:
authorbabolivier <babolivier@users.noreply.github.com>2021-10-20 11:04:56 +0000
committerbabolivier <babolivier@users.noreply.github.com>2021-10-20 11:04:56 +0000
commit36bedb6c6afeb652ac75b72db634dde05af2797f (patch)
tree105f1bb4d1a0cd06ebee7784f2ccd220d883274b /develop/modules/presence_router_callbacks.html
parentdeploy: 5e0e6835416776e4d938f53b3c9a005970f88127 (diff)
downloadsynapse-36bedb6c6afeb652ac75b72db634dde05af2797f.tar.xz
deploy: 78d5896d19692e4b6cdbf09f807915e6b0929ce5
Diffstat (limited to 'develop/modules/presence_router_callbacks.html')
-rw-r--r--develop/modules/presence_router_callbacks.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/develop/modules/presence_router_callbacks.html b/develop/modules/presence_router_callbacks.html

index ff95a5936f..43251d6828 100644 --- a/develop/modules/presence_router_callbacks.html +++ b/develop/modules/presence_router_callbacks.html
@@ -189,6 +189,7 @@ registered using the module API's <code>register_presence_router_callbacks</code <h2 id="callbacks"><a class="header" href="#callbacks">Callbacks</a></h2> <p>The available presence router callbacks are:</p> <h3 id="get_users_for_states"><a class="header" href="#get_users_for_states"><code>get_users_for_states</code></a></h3> +<p><em>First introduced in Synapse v1.42.0</em></p> <pre><code class="language-python">async def get_users_for_states( state_updates: Iterable[&quot;synapse.api.UserPresenceState&quot;], ) -&gt; Dict[str, Set[&quot;synapse.api.UserPresenceState&quot;]] @@ -203,6 +204,7 @@ must return a dictionary that maps from Matrix user IDs (which can be local or r by the callbacks. If multiple callbacks return a dictionary containing the same key, Synapse concatenates the sets associated with this key from each dictionary. </p> <h3 id="get_interested_users"><a class="header" href="#get_interested_users"><code>get_interested_users</code></a></h3> +<p><em>First introduced in Synapse v1.42.0</em></p> <pre><code class="language-python">async def get_interested_users( user_id: str ) -&gt; Union[Set[str], &quot;synapse.module_api.PRESENCE_ALL_USERS&quot;]