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

@ -39,6 +39,12 @@ class ChatModeWeb:
# 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
# Chat mode has no concept of individual file requests that
# turn into history widgets in the GUI, so set it to False
self.supports_file_requests = False
self.define_routes()
def define_routes(self):