1
0
Fork 0
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:
Chad Little 2017-04-19 14:18:43 -07:00
parent 51485a1f82
commit db60af7ea5

View file

@ -120,8 +120,10 @@ final class ConpherenceUpdateController
if (!$participant) {
return id(new Aphront404Response());
}
$participant->setSettings(array('notifications' => $notifications));
$participant->setSettings(array('sounds' => $sounds));
$participant->setSettings(array(
'notifications' => $notifications,
'sounds' => $sounds,
));
$participant->save();
return id(new AphrontRedirectResponse())
->setURI('/'.$conpherence->getMonogram());