fix: Show original poster name in room messages, not room server name

Room servers forward messages with the original author's 4-byte public
key prefix (roomPostAuthorPrefix). Was ignoring this — all room messages
showed the room server's name as sender.

Now resolves the actual poster's name from roomPostAuthorPrefix by
matching against the contacts list. Falls back to room server name if
the author isn't a known contact.

Also fixes findContactByPrefix to accept 4-byte prefixes (was rejecting
anything shorter than 6 bytes).

Fixes #22
This commit is contained in:
Janez T
2026-03-19 09:20:22 +01:00
parent f286b0afd1
commit e683ab933f
3 changed files with 27 additions and 11 deletions

View File

@@ -788,7 +788,7 @@ packages:
description:
path: "."
ref: main
resolved-ref: abff892fac0dd0e8004bfa1f415df74b44b8eb52
resolved-ref: "3dbc82170583f616b590e5204a307a02f2b8833d"
url: "https://github.com/dz0ny/meshcore_client.git"
source: git
version: "0.1.0"