From 596f2a121026cfb6dbd41314960c4ef0a8ce13a8 Mon Sep 17 00:00:00 2001 From: koplenov Date: Thu, 7 May 2026 06:33:07 +0300 Subject: [PATCH] fix nick's in chat --- xmpp.view.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmpp.view.ts b/xmpp.view.ts index 18311d0..eae9487 100644 --- a/xmpp.view.ts +++ b/xmpp.view.ts @@ -550,7 +550,8 @@ private _handle_message(el: Element) { const from_full = msg.getAttribute('from') || '' const slash = from_full.indexOf('/') const from = slash >= 0 ? from_full.slice(0, slash) : from_full - const nick = slash >= 0 ? from_full.slice(slash + 1) : undefined + // Only groupchat carries a meaningful nick after the slash; for 1:1 the resource is just a device id. + const nick = type === 'groupchat' && slash >= 0 ? from_full.slice(slash + 1) : undefined this.on_mam_message?.({ id: result.getAttribute('id') || this._id(), from,