summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-04-07 17:46:47 +0100
committerMark Haines <mark.haines@matrix.org>2016-04-08 10:37:19 +0100
commitcaef3375874d6ad7c5e55fc59d7e9b9a79952bd9 (patch)
treeed4f943c098b2cb24d794c28a46c89ffa31580f4 /synapse
parentMerge pull request #708 from matrix-org/markjh/remove_collect_presencelike_data (diff)
downloadsynapse-caef3375874d6ad7c5e55fc59d7e9b9a79952bd9.tar.xz
changed_presencelike_data isn't observed anywhere in synapse so can be removed
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/profile.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py
index 165e020694..e37409170d 100644
--- a/synapse/handlers/profile.py
+++ b/synapse/handlers/profile.py
@@ -26,10 +26,6 @@ import logging
 logger = logging.getLogger(__name__)
 
 
-def changed_presencelike_data(distributor, user, state):
-    return distributor.fire("changed_presencelike_data", user, state)
-
-
 class ProfileHandler(BaseHandler):
 
     def __init__(self, hs):
@@ -41,9 +37,6 @@ class ProfileHandler(BaseHandler):
         )
 
         distributor = hs.get_distributor()
-        self.distributor = distributor
-
-        distributor.declare("changed_presencelike_data")
 
         distributor.observe("registered_user", self.registered_user)
 
@@ -95,10 +88,6 @@ class ProfileHandler(BaseHandler):
             target_user.localpart, new_displayname
         )
 
-        yield changed_presencelike_data(self.distributor, target_user, {
-            "displayname": new_displayname,
-        })
-
         yield self._update_join_states(requester)
 
     @defer.inlineCallbacks
@@ -142,10 +131,6 @@ class ProfileHandler(BaseHandler):
             target_user.localpart, new_avatar_url
         )
 
-        yield changed_presencelike_data(self.distributor, target_user, {
-            "avatar_url": new_avatar_url,
-        })
-
         yield self._update_join_states(requester)
 
     @defer.inlineCallbacks