Only include the archived rooms if a include_leave flag in set in the filter

This commit is contained in:
Mark Haines 2015-12-04 17:32:09 +00:00
parent 3c85a317d6
commit 660dee94af
2 changed files with 10 additions and 6 deletions

View file

@ -143,6 +143,10 @@ class FilterCollection(object):
self.filter_json.get("account_data", {})
)
self.include_leave = self.filter_json.get("room", {}).get(
"include_leave", False
)
def timeline_limit(self):
return self.room_timeline_filter.limit()