mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04: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
@ -20,7 +20,7 @@ from synapse.types import StreamToken
|
|||||||
|
|
||||||
|
|
||||||
class RoomEventSource(object):
|
class RoomEventSource(object):
|
||||||
SIGNAL_NAME = "EventStreamSourceSignal"
|
SIGNAL_NAME = "RoomEventSource"
|
||||||
|
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
self.store = hs.get_datastore()
|
self.store = hs.get_datastore()
|
||||||
@ -74,6 +74,8 @@ class RoomEventSource(object):
|
|||||||
|
|
||||||
|
|
||||||
class PresenceStreamSource(object):
|
class PresenceStreamSource(object):
|
||||||
|
SIGNAL_NAME = "PresenceStreamSource"
|
||||||
|
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
self.hs = hs
|
self.hs = hs
|
||||||
self.clock = hs.get_clock()
|
self.clock = hs.get_clock()
|
||||||
@ -105,7 +107,7 @@ class PresenceStreamSource(object):
|
|||||||
return (([], end_token))
|
return (([], end_token))
|
||||||
|
|
||||||
def get_keys_for_user(self, user):
|
def get_keys_for_user(self, user):
|
||||||
raise NotImplementedError("get_keys_for_user")
|
return defer.succeed([])
|
||||||
|
|
||||||
def get_current_token_part(self):
|
def get_current_token_part(self):
|
||||||
presence = self.hs.get_handlers().presence_handler
|
presence = self.hs.get_handlers().presence_handler
|
||||||
|
Loading…
Reference in New Issue
Block a user