summary refs log tree commit diff
path: root/synapse/handlers/user_directory.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-31 16:50:57 +0100
committerErik Johnston <erik@matrix.org>2017-05-31 16:50:57 +0100
commitf9791498ae2ee267aef6965bd04998d7d1bb8d43 (patch)
treecd77ae6b3c44b762302181a1a58c8ede6a3404ea /synapse/handlers/user_directory.py
parentFix tests (diff)
downloadsynapse-f9791498ae2ee267aef6965bd04998d7d1bb8d43.tar.xz
Typos
Diffstat (limited to '')
-rw-r--r--synapse/handlers/user_directory.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py
index 75f259ee4e..7f8da1a876 100644
--- a/synapse/handlers/user_directory.py
+++ b/synapse/handlers/user_directory.py
@@ -304,10 +304,10 @@ class UserDirectoyHandler(object):
         `shared` to `world_readable` (`public_value`).
 
         Returns:
-            None if the field in the events either both match `public_value` o
+            None if the field in the events either both match `public_value`
             neither do, i.e. there has been no change.
             True if it didnt match `public_value` but now does
-            Falsse if it did match `public_value` but now doesn't
+            False if it did match `public_value` but now doesn't
         """
         prev_event = None
         event = None
@@ -320,18 +320,18 @@ class UserDirectoyHandler(object):
         if not event and not prev_event:
             defer.returnValue(None)
 
-        prev_hist_vis = None
-        hist_vis = None
+        prev_value = None
+        value = None
 
         if prev_event:
-            prev_hist_vis = prev_event.content.get(key_name, None)
+            prev_value = prev_event.content.get(key_name, None)
 
         if event:
-            hist_vis = event.content.get(key_name, None)
+            value = event.content.get(key_name, None)
 
-        if hist_vis == public_value and prev_hist_vis != public_value:
+        if value == public_value and prev_value != public_value:
             defer.returnValue(True)
-        elif hist_vis != public_value and prev_hist_vis == public_value:
+        elif value != public_value and prev_value == public_value:
             defer.returnValue(False)
         else:
             defer.returnValue(None)