]> git.mxchange.org Git - friendica-addons.git/commitdiff
jappixmini: also add to roster if no name set
authorLeberwurscht <leberwurscht@hoegners.de>
Tue, 17 Apr 2012 19:14:28 +0000 (21:14 +0200)
committerLeberwurscht <leberwurscht@hoegners.de>
Tue, 17 Apr 2012 19:14:28 +0000 (21:14 +0200)
jappixmini/lib.js

index 41773e959d1b54b02cbf87eec3a2412d6bea3804..a270a28ffc3777e0b99efbe24f000ecb1c19b470 100644 (file)
@@ -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.");
                }