]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix presence notification on XMPP thread (now foreground, not background)
authorBrion Vibber <brion@pobox.com>
Mon, 25 Jan 2010 21:48:24 +0000 (13:48 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 25 Jan 2010 21:48:24 +0000 (13:48 -0800)
lib/xmppmanager.php

index 299175dd7d79927f8819d24c9ca4e6ae9db6014c..985e7c32e45c4a5c4aba8c247126ecdd191ccece 100644 (file)
@@ -101,7 +101,7 @@ class XmppManager extends IoManager
         $this->conn->addEventHandler('reconnect', 'handle_reconnect', $this);
 
         $this->conn->setReconnectTimeout(600);
-        jabber_send_presence("Send me a message to post a notice", 'available', null, 'available', -1);
+        jabber_send_presence("Send me a message to post a notice", 'available', null, 'available', 100);
 
         return !is_null($this->conn);
     }
@@ -233,7 +233,7 @@ class XmppManager extends IoManager
         common_log(LOG_NOTICE, 'XMPP reconnected');
 
         $this->conn->processUntil('session_start');
-        $this->conn->presence(null, 'available', null, 'available', -1);
+        $this->conn->presence(null, 'available', null, 'available', 100);
     }