Merge pull request #618 from matrix-org/markjh/pushrule_stream

Add a stream for push rule updates
This commit is contained in:
Mark Haines 2016-03-04 16:35:08 +00:00
commit b7a3be693b
15 changed files with 484 additions and 194 deletions

View file

@ -662,8 +662,8 @@ class MessageHandler(BaseHandler):
user_id, messages, is_peeking=is_peeking
)
start_token = StreamToken(token[0], 0, 0, 0, 0)
end_token = StreamToken(token[1], 0, 0, 0, 0)
start_token = StreamToken.START.copy_and_replace("room_key", token[0])
end_token = StreamToken.START.copy_and_replace("room_key", token[1])
time_now = self.clock.time_msec()