move chat from feature to apps
This commit is contained in:
@@ -118,16 +118,6 @@ function get_features($filtered = true, $level = (-1)) {
|
||||
feature_level('photo_location',2),
|
||||
],
|
||||
|
||||
[
|
||||
'ajaxchat',
|
||||
t('Access Controlled Chatrooms'),
|
||||
t('Provide chatrooms and chat services with access control.'),
|
||||
true,
|
||||
get_config('feature_lock','ajaxchat'),
|
||||
feature_level('ajaxchat',1),
|
||||
],
|
||||
|
||||
|
||||
[
|
||||
'smart_birthdays',
|
||||
t('Smart Birthdays'),
|
||||
|
||||
@@ -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[] = [
|
||||
|
||||
Reference in New Issue
Block a user