From 89473b5e036cd2d3764de75b3ca2506c904828bd Mon Sep 17 00:00:00 2001 From: Leberwurscht Date: Sun, 15 Apr 2012 23:13:37 +0200 Subject: [PATCH] jappixmini: move jappixmini_manage_roster into callback --- jappixmini/jappixmini.php | 3 +-- jappixmini/lib.js | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index 80fc237f..3b03743d 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -418,8 +418,7 @@ function jappixmini_script(&$a,&$s) { // add javascript to start Jappix Mini $a->page['htmlhead'] .= ""; diff --git a/jappixmini/lib.js b/jappixmini/lib.js index 94e465d1..351d03f9 100644 --- a/jappixmini/lib.js +++ b/jappixmini/lib.js @@ -130,7 +130,7 @@ function jappixmini_addon_subscribe() { sendSubscribe(xid, "subscribe"); } -function jappixmini_addon_start(server, username, bosh, encrypted, password, nickname) { +function jappixmini_addon_start(server, username, bosh, encrypted, password, nickname, contacts, autoapprove, autosubscribe) { handler = function(password){ // check if settings have changed, reinitialize jappix mini if this is the case settings_identifier = str_sha1(server); @@ -149,7 +149,9 @@ function jappixmini_addon_start(server, username, bosh, encrypted, password, nic // start jappix mini MINI_NICKNAME = nickname; + console.log("launchMini"); launchMini(true, false, server, username, password); + jappixmini_manage_roster(contacts, autoapprove, autosubscribe) } // decrypt password if necessary