Set all room settings at once
Summary: Sets notification and sound preferences in a single array() Test Plan: Change email preference, save, set sound preference, save. Email preference still OK. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D17735
This commit is contained in:
@@ -120,8 +120,10 @@ final class ConpherenceUpdateController
|
|||||||
if (!$participant) {
|
if (!$participant) {
|
||||||
return id(new Aphront404Response());
|
return id(new Aphront404Response());
|
||||||
}
|
}
|
||||||
$participant->setSettings(array('notifications' => $notifications));
|
$participant->setSettings(array(
|
||||||
$participant->setSettings(array('sounds' => $sounds));
|
'notifications' => $notifications,
|
||||||
|
'sounds' => $sounds,
|
||||||
|
));
|
||||||
$participant->save();
|
$participant->save();
|
||||||
return id(new AphrontRedirectResponse())
|
return id(new AphrontRedirectResponse())
|
||||||
->setURI('/'.$conpherence->getMonogram());
|
->setURI('/'.$conpherence->getMonogram());
|
||||||
|
|||||||
Reference in New Issue
Block a user