mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
Remove "First Message" from New Conpherence Room workflow
Summary: Removes this feature, makes creating a room simpler and less confusing. Test Plan: Create a room on Conpherence. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D17661
This commit is contained in:
parent
578ebe6c2f
commit
099c90e7ec
1 changed files with 1 additions and 17 deletions
|
@ -7,7 +7,6 @@ final class ConpherenceNewRoomController extends ConpherenceController {
|
||||||
|
|
||||||
$title = pht('New Room');
|
$title = pht('New Room');
|
||||||
$e_title = true;
|
$e_title = true;
|
||||||
$v_message = null;
|
|
||||||
$validation_exception = null;
|
$validation_exception = null;
|
||||||
|
|
||||||
$conpherence = ConpherenceThread::initializeNewRoom($user);
|
$conpherence = ConpherenceThread::initializeNewRoom($user);
|
||||||
|
@ -39,15 +38,6 @@ final class ConpherenceNewRoomController extends ConpherenceController {
|
||||||
->setTransactionType(PhabricatorTransactions::TYPE_JOIN_POLICY)
|
->setTransactionType(PhabricatorTransactions::TYPE_JOIN_POLICY)
|
||||||
->setNewValue($request->getStr('joinPolicy'));
|
->setNewValue($request->getStr('joinPolicy'));
|
||||||
|
|
||||||
$v_message = $request->getStr('message');
|
|
||||||
if (strlen($v_message)) {
|
|
||||||
$message_xactions = $editor->generateTransactionsFromText(
|
|
||||||
$user,
|
|
||||||
$conpherence,
|
|
||||||
$v_message);
|
|
||||||
$xactions = array_merge($xactions, $message_xactions);
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$editor
|
$editor
|
||||||
->setContentSourceFromRequest($request)
|
->setContentSourceFromRequest($request)
|
||||||
|
@ -125,13 +115,7 @@ final class ConpherenceNewRoomController extends ConpherenceController {
|
||||||
->setName('joinPolicy')
|
->setName('joinPolicy')
|
||||||
->setPolicyObject($conpherence)
|
->setPolicyObject($conpherence)
|
||||||
->setCapability(PhabricatorPolicyCapability::CAN_JOIN)
|
->setCapability(PhabricatorPolicyCapability::CAN_JOIN)
|
||||||
->setPolicies($policies))
|
->setPolicies($policies));
|
||||||
->appendChild(
|
|
||||||
id(new PhabricatorRemarkupControl())
|
|
||||||
->setUser($user)
|
|
||||||
->setName('message')
|
|
||||||
->setLabel(pht('First Message'))
|
|
||||||
->setValue($v_message));
|
|
||||||
|
|
||||||
$dialog->appendChild($form);
|
$dialog->appendChild($form);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue