mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-03 11:21:01 +01:00
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:
parent
51485a1f82
commit
db60af7ea5
1 changed files with 4 additions and 2 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue