mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-16 13:23:51 +01:00
docstring
This commit is contained in:
parent
77a23e2e05
commit
f731e42baf
1 changed files with 9 additions and 1 deletions
|
@ -142,7 +142,15 @@ class IdentityHandler(BaseHandler):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def unbind_threepid(self, mxid, threepid):
|
def unbind_threepid(self, mxid, threepid):
|
||||||
yield run_on_reactor()
|
"""
|
||||||
|
Removes a binding from an identity server
|
||||||
|
Args:
|
||||||
|
mxid (str): Matrix user ID of binding to be removed
|
||||||
|
threepid (dict): Dict with medium & address of binding to be removed
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Deferred
|
||||||
|
"""
|
||||||
logger.debug("unbinding threepid %r from %s", threepid, mxid)
|
logger.debug("unbinding threepid %r from %s", threepid, mxid)
|
||||||
if not self.trusted_id_servers:
|
if not self.trusted_id_servers:
|
||||||
logger.warn("Can't unbind threepid: no trusted ID servers set in config")
|
logger.warn("Can't unbind threepid: no trusted ID servers set in config")
|
||||||
|
|
Loading…
Reference in a new issue