UI for deleting chatrooms

This commit is contained in:
friendica
2014-05-04 20:30:52 -07:00
parent 3ae67c517e
commit 806f1f0fa1
6 changed files with 36 additions and 6 deletions

View File

@@ -84,6 +84,9 @@ function chatroom_destroy($channel,$arr) {
q("delete from chatpresence where cp_room = %d",
intval($r[0]['cr_id'])
);
q("delete from chat where chat_room = %d",
intval($r[0]['cr_id'])
);
}
$ret['success'] = true;
return $ret;