mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fixup docstrings
This commit is contained in:
parent
39fb971e85
commit
c75e2017f1
@ -150,14 +150,16 @@ class IdentityHandler(BaseHandler):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
mxid (str): Matrix user ID of binding to be removed
|
mxid (str): Matrix user ID of binding to be removed
|
||||||
threepid (dict): Dict with medium & address of binding to be removed
|
threepid (dict): Dict with medium & address of binding to be
|
||||||
|
removed, and an optional id_server.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
SynapseError: If we failed to contact the identity server
|
SynapseError: If we failed to contact the identity server
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Deferred[bool]: True on success, otherwise False if the identity
|
Deferred[bool]: True on success, otherwise False if the identity
|
||||||
server doesn't support unbinding
|
server doesn't support unbinding (or no identity server found to
|
||||||
|
contact).
|
||||||
"""
|
"""
|
||||||
if threepid.get("id_server"):
|
if threepid.get("id_server"):
|
||||||
id_servers = [threepid["id_server"]]
|
id_servers = [threepid["id_server"]]
|
||||||
|
@ -358,9 +358,9 @@ class RegistrationWorkerStore(SQLBaseStore):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def remove_user_bound_threepid(self, user_id, medium, address, id_server):
|
def remove_user_bound_threepid(self, user_id, medium, address, id_server):
|
||||||
"""The server proxied a bind request to the given identity server on
|
"""The server proxied an unbind request to the given identity server on
|
||||||
behalf of the given user. We need to remember this in case the user
|
behalf of the given user, so we remove the mapping of threepid to
|
||||||
asks us to unbind the threepid.
|
identity server.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
user_id (str)
|
user_id (str)
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
-- Tracks when
|
-- Tracks which identity server a user bound their threepid via.
|
||||||
CREATE TABlE user_threepid_id_server (
|
CREATE TABLE user_threepid_id_server (
|
||||||
user_id TEXT NOT NULL,
|
user_id TEXT NOT NULL,
|
||||||
medium TEXT NOT NULL,
|
medium TEXT NOT NULL,
|
||||||
address TEXT NOT NULL,
|
address TEXT NOT NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user