issue #138 ; make ajaxchat optional and configurable. For reasons we've discussed repeatedly the ajax chat will not be removed from core as XMPP chat does not provide decentralised access control compatible with nomadic identity.
This commit is contained in:
@@ -1592,6 +1592,7 @@ function network_tabs() {
|
||||
function profile_tabs($a, $is_owner = false, $nickname = null){
|
||||
|
||||
// Don't provide any profile tabs if we're running as the sys channel
|
||||
|
||||
if (App::$is_sys)
|
||||
return;
|
||||
|
||||
@@ -1669,7 +1670,7 @@ function profile_tabs($a, $is_owner = false, $nickname = null){
|
||||
}
|
||||
|
||||
|
||||
if ($p['chat']) {
|
||||
if ($p['chat'] && feature_enabled($uid,'ajaxchat')) {
|
||||
require_once('include/chat.php');
|
||||
$has_chats = chatroom_list_count($uid);
|
||||
if ($has_chats) {
|
||||
|
Reference in New Issue
Block a user