move chat from feature to apps

This commit is contained in:
Mario Vavti
2018-09-13 11:32:43 +02:00
parent a1d5ce3716
commit 56f88f2e30
6 changed files with 46 additions and 47 deletions

View File

@@ -417,7 +417,7 @@ function channel_apps($is_owner = false, $nickname = null) {
}
if ($p['chat'] && feature_enabled($uid,'ajaxchat')) {
if ($p['chat'] && Apps::system_app_installed($uid,'Chatrooms')) {
$has_chats = Chatroom::list_count($uid);
if ($has_chats) {
$tabs[] = [