(self, name: str)
| 375 | return f"Sent {msg_type} to {to}" |
| 376 | |
| 377 | def read_inbox(self, name: str) -> list: |
| 378 | path = INBOX_DIR / f"{name}.jsonl" |
| 379 | if not path.exists(): return [] |
| 380 | msgs = [json.loads(l) for l in path.read_text().strip().splitlines() if l] |
| 381 | path.write_text("") |
| 382 | return msgs |
| 383 | |
| 384 | def broadcast(self, sender: str, content: str, names: list) -> str: |
| 385 | count = 0 |
no test coverage detected