aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-cli
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-cli')
-rw-r--r--packages/meshbay-cli/src/meshbay_cli/client/chat.py4
-rw-r--r--packages/meshbay-cli/tests/fake_node.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/meshbay-cli/src/meshbay_cli/client/chat.py b/packages/meshbay-cli/src/meshbay_cli/client/chat.py
index 587303a..d525abf 100644
--- a/packages/meshbay-cli/src/meshbay_cli/client/chat.py
+++ b/packages/meshbay-cli/src/meshbay_cli/client/chat.py
@@ -186,7 +186,7 @@ async def post(session: GroupSession, keys: ChatKeys, text: str, sender_name: st
ident = session.identity
device_b64 = ident.pk_ed
sealed = seal(key, session.group_id, epoch, device_b64, unb64(device_b64), ident.sk_ed,
- {"text": text, "thread_id": None, "sender_name": sender_name,
+ {"text": text, "sender_name": sender_name,
"sent_at": int(time.time())})
if len(sealed["ct"]) > MAX_CIPHERTEXT:
raise CliError(USAGE, "This message is too large for chat; send it as a file "
@@ -195,5 +195,5 @@ async def post(session: GroupSession, keys: ChatKeys, text: str, sender_name: st
"format": FORMAT_SEALED, "epoch": epoch,
"ct": sealed["ct"], "nonce": sealed["nonce"],
"device": unb64(device_b64), "sig": sealed["sig"],
- "thread_id": None, "sender_name": None}, "ack")
+ "sender_name": None}, "ack")
diff --git a/packages/meshbay-cli/tests/fake_node.py b/packages/meshbay-cli/tests/fake_node.py
index 552bd39..c618ee4 100644
--- a/packages/meshbay-cli/tests/fake_node.py
+++ b/packages/meshbay-cli/tests/fake_node.py
@@ -140,7 +140,7 @@ class FakeNode:
def _store(self, device: bytes, epoch: int, sealed: dict, sender_id: str) -> None:
self.chat.append({"id": len(self.chat) + 1, "sender_id": sender_id,
"sender_name": "", "timestamp": 1_700_000_000 + len(self.chat),
- "thread_id": None, "format": 1, "epoch": epoch,
+ "format": 1, "epoch": epoch,
"device": device, "nonce": sealed["nonce"], "sig": sealed["sig"],
"payload": "", "ct": sealed["ct"]})