@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

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

+4 -2
+4 -2
src/applications/conpherence/controller/ConpherenceUpdateController.php
··· 120 120 if (!$participant) { 121 121 return id(new Aphront404Response()); 122 122 } 123 - $participant->setSettings(array('notifications' => $notifications)); 124 - $participant->setSettings(array('sounds' => $sounds)); 123 + $participant->setSettings(array( 124 + 'notifications' => $notifications, 125 + 'sounds' => $sounds, 126 + )); 125 127 $participant->save(); 126 128 return id(new AphrontRedirectResponse()) 127 129 ->setURI('/'.$conpherence->getMonogram());