From cd28f9d7cce5b0ffbc00e03890c791ca83724602 Mon Sep 17 00:00:00 2001 From: Leberwurscht Date: Tue, 17 Apr 2012 21:14:28 +0200 Subject: [PATCH] jappixmini: also add to roster if no name set --- jappixmini/lib.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jappixmini/lib.js b/jappixmini/lib.js index 41773e95..a270a28f 100644 --- a/jappixmini/lib.js +++ b/jappixmini/lib.js @@ -126,6 +126,9 @@ function jappixmini_manage_roster(contacts, autoapprove, autosubscribe) { } if (approve) { + name = contacts[xid]; + if (!name) name = xid; + acceptSubscribe(xid, contacts[xid]); console.log("Accepted "+xid+" for chat."); } -- 2.39.5