Page MenuHomePhabricator

D17721.id.diff
No OneTemporary

D17721.id.diff

diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -10,7 +10,7 @@
'conpherence.pkg.css' => 'a34d59bd',
'conpherence.pkg.js' => '5f86c17d',
'core.pkg.css' => '959330a2',
- 'core.pkg.js' => 'e129dcd4',
+ 'core.pkg.js' => '5363ae35',
'darkconsole.pkg.js' => '1f9a31bc',
'differential.pkg.css' => '90b30783',
'differential.pkg.js' => 'ddfeb49b',
@@ -19,6 +19,7 @@
'favicon.ico' => '30672e08',
'maniphest.pkg.css' => '4845691a',
'maniphest.pkg.js' => '5ab2753f',
+ 'rsrc/audio/basic/tap.mp3' => 'fc2fd796',
'rsrc/css/aphront/aphront-bars.css' => '231ac33c',
'rsrc/css/aphront/dark-console.css' => '53798a6d',
'rsrc/css/aphront/dialog-view.css' => '685c7e2d',
@@ -370,7 +371,7 @@
'rsrc/js/application/calendar/behavior-event-all-day.js' => 'b41537c9',
'rsrc/js/application/calendar/behavior-month-view.js' => 'fe33e256',
'rsrc/js/application/config/behavior-reorder-fields.js' => 'b6993408',
- 'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => 'dd84a70f',
+ 'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '311eae46',
'rsrc/js/application/conpherence/behavior-conpherence-search.js' => '9bbf3762',
'rsrc/js/application/conpherence/behavior-durable-column.js' => 'aa3bd034',
'rsrc/js/application/conpherence/behavior-menu.js' => '80dda04a',
@@ -560,7 +561,7 @@
'conpherence-message-pane-css' => '14199428',
'conpherence-notification-css' => 'cef0a3fc',
'conpherence-participant-pane-css' => '26a3ce56',
- 'conpherence-thread-manager' => 'dd84a70f',
+ 'conpherence-thread-manager' => '311eae46',
'conpherence-transaction-css' => '85129c68',
'd3' => 'a11a5ff2',
'differential-changeset-view-css' => '41af6d25',
@@ -1132,6 +1133,17 @@
'2ee659ce' => array(
'javelin-install',
),
+ '311eae46' => array(
+ 'javelin-dom',
+ 'javelin-util',
+ 'javelin-stratcom',
+ 'javelin-install',
+ 'javelin-aphlict',
+ 'javelin-workflow',
+ 'javelin-router',
+ 'javelin-behavior-device',
+ 'javelin-vector',
+ ),
'31420f77' => array(
'javelin-behavior',
),
@@ -2095,17 +2107,6 @@
'javelin-util',
'phabricator-shaped-request',
),
- 'dd84a70f' => array(
- 'javelin-dom',
- 'javelin-util',
- 'javelin-stratcom',
- 'javelin-install',
- 'javelin-aphlict',
- 'javelin-workflow',
- 'javelin-router',
- 'javelin-behavior-device',
- 'javelin-vector',
- ),
'de2e896f' => array(
'javelin-behavior',
'javelin-dom',
@@ -2376,6 +2377,7 @@
'javelin-behavior-toggle-class',
'javelin-behavior-lightbox-attachments',
'phabricator-busy',
+ 'javelin-sound',
'javelin-aphlict',
'phabricator-notification',
'javelin-behavior-aphlict-listen',
diff --git a/resources/celerity/packages.php b/resources/celerity/packages.php
--- a/resources/celerity/packages.php
+++ b/resources/celerity/packages.php
@@ -46,6 +46,7 @@
'javelin-behavior-toggle-class',
'javelin-behavior-lightbox-attachments',
'phabricator-busy',
+ 'javelin-sound',
'javelin-aphlict',
'phabricator-notification',
'javelin-behavior-aphlict-listen',
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
@@ -546,6 +546,9 @@
$dropdown_query = id(new AphlictDropdownDataQuery())
->setViewer($user);
$dropdown_query->execute();
+
+ $receive_sound = celerity_get_resource_uri('/rsrc/audio/basic/tap.mp3');
+
$content = array(
'non_update' => $non_update,
'transactions' => hsprintf('%s', $rendered_transactions),
@@ -559,6 +562,9 @@
$dropdown_query->getNotificationData(),
$dropdown_query->getConpherenceData(),
),
+ 'sound' => array(
+ 'receive' => $receive_sound,
+ ),
);
return $content;
diff --git a/webroot/rsrc/audio/basic/tap.mp3 b/webroot/rsrc/audio/basic/tap.mp3
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/webroot/rsrc/js/application/conpherence/ConpherenceThreadManager.js b/webroot/rsrc/js/application/conpherence/ConpherenceThreadManager.js
--- a/webroot/rsrc/js/application/conpherence/ConpherenceThreadManager.js
+++ b/webroot/rsrc/js/application/conpherence/ConpherenceThreadManager.js
@@ -313,6 +313,14 @@
this._updating.knownID = r.latest_transaction_id;
this._latestTransactionID = r.latest_transaction_id;
+
+ JX.Leader.broadcast(
+ 'conpherence.message.' + r.latest_transaction_id,
+ {
+ type: 'sound',
+ data: r.sound.receive
+ });
+
JX.Stratcom.invoke(
'conpherence-redraw-aphlict',
null,

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 21, 5:05 AM (6 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7639014
Default Alt Text
D17721.id.diff (5 KB)

Event Timeline