aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-20 21:37:18 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-20 21:37:18 -0700
commitd2565d0f61c139df6536ec9d90c10d7af29ef9e5 (patch)
tree1f21f01874913a3f5f1f86bdc857dccc143f6a3b /include
parent4fde0bf62e7ff0ad946eb76c7238402b2bdd6e85 (diff)
downloadvolse-hubzilla-d2565d0f61c139df6536ec9d90c10d7af29ef9e5.tar.gz
volse-hubzilla-d2565d0f61c139df6536ec9d90c10d7af29ef9e5.tar.bz2
volse-hubzilla-d2565d0f61c139df6536ec9d90c10d7af29ef9e5.zip
looks like chat has been neglected a bit recently
Diffstat (limited to 'include')
-rw-r--r--include/chat.php2
-rw-r--r--include/nav.php5
2 files changed, 3 insertions, 4 deletions
diff --git a/include/chat.php b/include/chat.php
index a0646265a..81c5c5d62 100644
--- a/include/chat.php
+++ b/include/chat.php
@@ -91,7 +91,7 @@ function chatroom_destroy($channel,$arr) {
return $ret;
}
- create_sync_packet($channel['channel_id'],array('chatroom' => $r));
+ build_sync_packet($channel['channel_id'],array('chatroom' => $r));
q("delete from chatroom where cr_id = %d",
intval($r[0]['cr_id'])
diff --git a/include/nav.php b/include/nav.php
index 59a7c83a3..972795e83 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -94,9 +94,8 @@ EOT;
require_once('include/chat.php');
$has_chats = chatroom_list_count(local_channel());
- if($has_chats) {
- $nav['usermenu'][] = Array('chat/' . $channel['channel_address'],t('Chat'),"",t('Your chatrooms'),'chat_nav_btn');
- }
+ $nav['usermenu'][] = Array('chat/' . $channel['channel_address'] . (($has_chats) ? '' : '/new'), t('Chat'),"",t('Your chatrooms'),'chat_nav_btn');
+
require_once('include/menu.php');
$has_bookmarks = menu_list_count(local_channel(),'',MENU_BOOKMARK) + menu_list_count(local_channel(),'',MENU_SYSTEM|MENU_BOOKMARK);