From: Leberwurscht Date: Tue, 17 Apr 2012 19:14:28 +0000 (+0200) Subject: jappixmini: also add to roster if no name set X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd28f9d7cce5b0ffbc00e03890c791ca83724602;p=friendica-addons.git jappixmini: also add to roster if no name set --- 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."); }