]> git.mxchange.org Git - friendica-addons.git/commitdiff
jappixmini: do not annoy user by asking multiple times for authorization
authorLeberwurscht <leberwurscht@hoegners.de>
Tue, 17 Apr 2012 19:00:03 +0000 (21:00 +0200)
committerLeberwurscht <leberwurscht@hoegners.de>
Tue, 17 Apr 2012 19:00:03 +0000 (21:00 +0200)
jappixmini/lib.js

index bbbc7e34e008b057baa8879912789c1283985968..91ba6f6af4566363d412b3f4cfa08685a8b31e3a 100644 (file)
@@ -120,6 +120,9 @@ function jappixmini_manage_roster(contacts, autoapprove, autosubscribe) {
                        message = "Accept "+xid+" for chat?";
                        if (pstatus) message += "\n\nStatus:\n"+pstatus;
                        approve = confirm(message);
+
+                       // do not ask any more
+                       if (!approve) sendSubscribe(xid, "unsubscribed");
                }
 
                if (approve) {