mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +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');
|
||||
$e_title = true;
|
||||
$v_message = null;
|
||||
$validation_exception = null;
|
||||
|
||||
$conpherence = ConpherenceThread::initializeNewRoom($user);
|
||||
|
@ -39,15 +38,6 @@ final class ConpherenceNewRoomController extends ConpherenceController {
|
|||
->setTransactionType(PhabricatorTransactions::TYPE_JOIN_POLICY)
|
||||
->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 {
|
||||
$editor
|
||||
->setContentSourceFromRequest($request)
|
||||
|
@ -125,13 +115,7 @@ final class ConpherenceNewRoomController extends ConpherenceController {
|
|||
->setName('joinPolicy')
|
||||
->setPolicyObject($conpherence)
|
||||
->setCapability(PhabricatorPolicyCapability::CAN_JOIN)
|
||||
->setPolicies($policies))
|
||||
->appendChild(
|
||||
id(new PhabricatorRemarkupControl())
|
||||
->setUser($user)
|
||||
->setName('message')
|
||||
->setLabel(pht('First Message'))
|
||||
->setValue($v_message));
|
||||
->setPolicies($policies));
|
||||
|
||||
$dialog->appendChild($form);
|
||||
|
||||
|
|
Loading…
Reference in a new issue