Move the 'supports_file_requests' attribute into the actual modes rather than the Web class

This commit is contained in:
Miguel Jacq 2021-05-11 09:25:22 +10:00
parent 9aedb0cc00
commit aa7a6e321b
4 changed files with 20 additions and 7 deletions

View file

@ -64,6 +64,10 @@ class ReceiveModeWeb:
# This tracks the history id
self.cur_history_id = 0
# Whether or not we can send REQUEST_INDIVIDUAL_FILE_STARTED
# and maybe other events when requests come in to this mode
self.supports_file_requests = True
self.define_routes()
def define_routes(self):