summary refs log tree commit diff
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-01-10 15:38:22 +0000
committerGitHub <noreply@github.com>2022-01-10 15:38:22 +0000
commitffd227c3822b6e20b9dc203b3eae253adc0cf663 (patch)
treecaca777ad9849d05632f1a504bbcaef072c773db
parentDeal with mypy errors w/ type-hinted pynacl 1.5.0 (#11714) (diff)
downloadsynapse-ffd227c3822b6e20b9dc203b3eae253adc0cf663.tar.xz
Fix docstring on `add_account_data_for_user`. (#11716)
-rw-r--r--changelog.d/11716.misc1
-rw-r--r--synapse/handlers/account_data.py2
-rw-r--r--synapse/storage/databases/main/account_data.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/changelog.d/11716.misc b/changelog.d/11716.misc
new file mode 100644
index 0000000000..08f7310498
--- /dev/null
+++ b/changelog.d/11716.misc
@@ -0,0 +1 @@
+Fix docstring on `add_account_data_for_user`.
\ No newline at end of file
diff --git a/synapse/handlers/account_data.py b/synapse/handlers/account_data.py
index 96273e2f81..bad48713bc 100644
--- a/synapse/handlers/account_data.py
+++ b/synapse/handlers/account_data.py
@@ -77,7 +77,7 @@ class AccountDataHandler:
     async def add_account_data_for_user(
         self, user_id: str, account_data_type: str, content: JsonDict
     ) -> int:
-        """Add some account_data to a room for a user.
+        """Add some global account_data for a user.
 
         Args:
             user_id: The user to add a tag for.
diff --git a/synapse/storage/databases/main/account_data.py b/synapse/storage/databases/main/account_data.py
index 32a553fdd7..93db71d1b4 100644
--- a/synapse/storage/databases/main/account_data.py
+++ b/synapse/storage/databases/main/account_data.py
@@ -450,7 +450,7 @@ class AccountDataWorkerStore(CacheInvalidationWorkerStore):
     async def add_account_data_for_user(
         self, user_id: str, account_data_type: str, content: JsonDict
     ) -> int:
-        """Add some account_data to a room for a user.
+        """Add some global account_data for a user.
 
         Args:
             user_id: The user to add a tag for.