Move the presence handler out of the Handlers object

This commit is contained in:
Mark Haines 2016-05-16 18:56:37 +01:00
parent 2d98c960ec
commit 3b86ecfa79
12 changed files with 29 additions and 18 deletions

View file

@ -570,7 +570,7 @@ class RoomTypingRestServlet(ClientV1RestServlet):
def __init__(self, hs):
super(RoomTypingRestServlet, self).__init__(hs)
self.presence_handler = hs.get_handlers().presence_handler
self.presence_handler = hs.get_presence_handler()
@defer.inlineCallbacks
def on_PUT(self, request, room_id, user_id):