From f02fa718aa3b1cdd64fd63551f994763f759d5ad Mon Sep 17 00:00:00 2001 From: MarekWo Date: Sat, 27 Dec 2025 20:51:09 +0100 Subject: [PATCH 1/2] docs: Add meshcore-cli 1.3.12 version requirement to README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add explicit requirement for meshcore-cli >= 1.3.12 in Prerequisites section. This version is required for proper Direct Messages (DM) functionality due to the fix of SENT_MSG format (recipient and sender fields). Related: Refactoring commit 879f704 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 790e647..54ada42 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,8 @@ A lightweight web interface for meshcore-cli, providing browser-based access to **Note:** meshcore-cli is automatically installed inside the Docker container - no host installation required! +**Important:** This application requires meshcore-cli version **1.3.12 or newer** for proper Direct Messages (DM) functionality. The Docker container automatically installs the latest version. + ### Installation 1. **Clone the repository** From 3d681f57ee95d3f80f331fca3560f0def8013751 Mon Sep 17 00:00:00 2001 From: MarekWo Date: Sun, 28 Dec 2025 07:15:24 +0100 Subject: [PATCH 2/2] fix(parser): Use sender field for SENT_CHAN in meshcore-cli 1.3.12+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix channel message sender name display. In meshcore-cli 1.3.12, the 'name' field in SENT_CHAN entries now contains the channel name instead of the sender's device name. Update parser to use the 'sender' field instead. Before: Sent messages showed "channel 0" as sender After: Sent messages correctly show "MarWoj" (actual sender name) This change is consistent with the SENT_MSG parsing for Direct Messages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- app/meshcore/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/meshcore/parser.py b/app/meshcore/parser.py index 17a3039..7720c34 100644 --- a/app/meshcore/parser.py +++ b/app/meshcore/parser.py @@ -47,8 +47,8 @@ def parse_message(line: Dict, allowed_channels: Optional[List[int]] = None) -> O # Extract sender name if is_own: - # For sent messages, use device name from config or 'name' field - sender = line.get('name', config.MC_DEVICE_NAME) + # For sent messages, use 'sender' field (meshcore-cli 1.3.12+) + sender = line.get('sender', config.MC_DEVICE_NAME) content = text else: # For received messages, extract sender from "SenderName: message" format