From: Leberwurscht Date: Tue, 17 Apr 2012 19:00:03 +0000 (+0200) Subject: jappixmini: do not annoy user by asking multiple times for authorization X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fccaea4f2f9cb29fed49e5c1264b7a55773c6451;p=friendica-addons.git jappixmini: do not annoy user by asking multiple times for authorization --- diff --git a/jappixmini/lib.js b/jappixmini/lib.js index bbbc7e34..91ba6f6a 100644 --- a/jappixmini/lib.js +++ b/jappixmini/lib.js @@ -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) {