diff options
author | Miguel Jacq <mig@mig5.net> | 2021-05-11 09:25:22 +1000 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2021-05-11 09:25:22 +1000 |
commit | d4d6eea500feb825d5639354b8aad1be6ba451f5 (patch) | |
tree | 825ca3140635d0cb7e0280a511a5d7b913b83575 /cli/onionshare_cli/web/receive_mode.py | |
parent | 3394571fadcb4c6b20d1c7255d99dc668f06c58d (diff) | |
download | onionshare-d4d6eea500feb825d5639354b8aad1be6ba451f5.tar.gz onionshare-d4d6eea500feb825d5639354b8aad1be6ba451f5.zip |
Move the 'supports_file_requests' attribute into the actual modes rather than the Web class
Diffstat (limited to 'cli/onionshare_cli/web/receive_mode.py')
-rw-r--r-- | cli/onionshare_cli/web/receive_mode.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/onionshare_cli/web/receive_mode.py b/cli/onionshare_cli/web/receive_mode.py index b3a146e3..76abb0a8 100644 --- a/cli/onionshare_cli/web/receive_mode.py +++ b/cli/onionshare_cli/web/receive_mode.py @@ -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): |