Page MenuHomePhabricator

D17973.id43240.diff
No OneTemporary

D17973.id43240.diff

diff --git a/src/applications/conpherence/controller/ConpherenceUpdateController.php b/src/applications/conpherence/controller/ConpherenceUpdateController.php
--- a/src/applications/conpherence/controller/ConpherenceUpdateController.php
+++ b/src/applications/conpherence/controller/ConpherenceUpdateController.php
@@ -369,9 +369,17 @@
->setViewer($user);
$dropdown_query->execute();
- $sounds = $this->getSoundForParticipant($user, $participant);
- $receive_sound = $sounds[ConpherenceRoomSettings::SOUND_RECEIVE];
- $mention_sound = $sounds[ConpherenceRoomSettings::SOUND_MENTION];
+ $map = ConpherenceRoomSettings::getSoundMap();
+ $default_receive = ConpherenceRoomSettings::DEFAULT_RECEIVE_SOUND;
+ $receive_sound = $map[$default_receive]['rsrc'];
+ $mention_sound = null;
+
+ // Get the user's defaults if logged in
+ if ($participant) {
+ $sounds = $this->getSoundForParticipant($user, $participant);
+ $receive_sound = $sounds[ConpherenceRoomSettings::SOUND_RECEIVE];
+ $mention_sound = $sounds[ConpherenceRoomSettings::SOUND_MENTION];
+ }
$content = array(
'non_update' => $non_update,

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 11, 12:49 AM (17 h, 32 s ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7485660
Default Alt Text
D17973.id43240.diff (1 KB)

Event Timeline