mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
Fix exceptions so that the event stream works. Presence like events are turned off currently.
This commit is contained in:
parent
93cff1668c
commit
c1cf0b334e
1 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,7 @@ from synapse.types import StreamToken
|
|||
|
||||
|
||||
class RoomEventSource(object):
|
||||
SIGNAL_NAME = "EventStreamSourceSignal"
|
||||
SIGNAL_NAME = "RoomEventSource"
|
||||
|
||||
def __init__(self, hs):
|
||||
self.store = hs.get_datastore()
|
||||
|
@ -74,6 +74,8 @@ class RoomEventSource(object):
|
|||
|
||||
|
||||
class PresenceStreamSource(object):
|
||||
SIGNAL_NAME = "PresenceStreamSource"
|
||||
|
||||
def __init__(self, hs):
|
||||
self.hs = hs
|
||||
self.clock = hs.get_clock()
|
||||
|
@ -105,7 +107,7 @@ class PresenceStreamSource(object):
|
|||
return (([], end_token))
|
||||
|
||||
def get_keys_for_user(self, user):
|
||||
raise NotImplementedError("get_keys_for_user")
|
||||
return defer.succeed([])
|
||||
|
||||
def get_current_token_part(self):
|
||||
presence = self.hs.get_handlers().presence_handler
|
||||
|
|
Loading…
Reference in a new issue