mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Add sound to logged out Conpherence
Summary: Fixes T12735. Adds a sound if the user is logged out, skips checking a setting. Test Plan: set participants to null and verify sound plays, no exceptions1111 Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T12735 Differential Revision: https://secure.phabricator.com/D17973
This commit is contained in:
parent
1644b45050
commit
5f49f9c793
1 changed files with 11 additions and 3 deletions
|
@ -369,9 +369,17 @@ final class ConpherenceUpdateController
|
|||
->setViewer($user);
|
||||
$dropdown_query->execute();
|
||||
|
||||
$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,
|
||||
|
|
Loading…
Reference in a new issue