Bump a user's presence last_active time every time they send a message to a room

This commit is contained in:
Paul "LeoNerd" Evans 2014-09-01 16:16:35 +01:00
parent 59d3955db1
commit 1c6ab2d759
2 changed files with 10 additions and 0 deletions

View file

@ -90,6 +90,10 @@ class MessageHandler(BaseRoomHandler):
yield self._on_new_room_event(event, snapshot)
self.hs.get_handlers().presence_handler.bump_presence_active_time(
user
)
@defer.inlineCallbacks
def get_messages(self, user_id=None, room_id=None, pagin_config=None,
feedback=False):