aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2021-04-30 14:12:41 -0700
committerMicah Lee <micah@micahflee.com>2021-04-30 14:12:41 -0700
commit47e02d781a5fb348fe2fb728300a73e3de37dfca (patch)
tree86ff44194a7ed9b1d2384d06eba5d52b36f505a3 /desktop
parentb51c0ee046b00cc99d8e0cdc147039521c815be4 (diff)
downloadonionshare-47e02d781a5fb348fe2fb728300a73e3de37dfca.tar.gz
onionshare-47e02d781a5fb348fe2fb728300a73e3de37dfca.zip
If a text message is received, save it in the ReceiveModeRequest object, and add includes_text=True to REQUEST_STARTED
Diffstat (limited to 'desktop')
-rw-r--r--desktop/src/onionshare/tab/mode/history.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/src/onionshare/tab/mode/history.py b/desktop/src/onionshare/tab/mode/history.py
index 10606c85..ffd96248 100644
--- a/desktop/src/onionshare/tab/mode/history.py
+++ b/desktop/src/onionshare/tab/mode/history.py
@@ -277,6 +277,12 @@ class ReceiveHistoryItem(HistoryItem):
self.started = datetime.now()
self.status = HistoryItem.STATUS_STARTED
+ self.common.log(
+ "ReceiveHistoryItem",
+ "__init__",
+ f"id={self.id} content_length={self.content_length}",
+ )
+
# Label
self.label = QtWidgets.QLabel(
strings._("gui_all_modes_transfer_started").format(
@@ -318,6 +324,12 @@ class ReceiveHistoryItem(HistoryItem):
Using the progress from Web, update the progress bar and file size labels
for each file
"""
+ # self.common.log(
+ # "ReceiveHistoryItem",
+ # "update",
+ # f"id={self.id} data[action]={data['action']} files={list(self.files)}",
+ # )
+
if data["action"] == "progress":
total_uploaded_bytes = 0
for filename in data["progress"]: