Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15316040
D17721.id42617.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
D17721.id42617.diff
View Options
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' => '4a83713e',
+ 'core.pkg.js' => '34db8846',
'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..b497cfb13f7eca43f21a5f79c701b189af7d2bba
GIT binary patch
literal 1564
zc%1wHd%_V0bP$o5mky-(ftZ<rflY>C7a{P15cp3B0PPC!arAXH*0Z!MV%Z6Eim8GM
z>kLN*#s?sG1We8Sg5lU<4*vhX0E{56EzU6|pBa>!v{#m!Pw-$+2%7s_YH!^7`mKr<
zyb(JW7AbZlZBm=1#37*I(7?mStTwNM(fAQ_>p=#``%MgO0RlV;4GI$fU$HRDYj7|z
zw0~-7P~iXH{NRV3{1JwR1bP0aj0^`_z!ok|FyN7Rd_ZS0yOYtOfJF-~K4>Voaiiyd
zhm2H4Mj9VS2J`WvZw0O{S_*~&D=RzL`mQvjSkE}J>|ue+Y&M4cJ!}W=v`85<Wz1wT
z>-Uw}tDrpLYtSx6-kn|&>lT<6EA9@hy<{#n<+FwVY1VjNE8{3{zK61RR_)3BH-Gk2
z8-eM$Uu&}ij^#bQCabsFclW1T(VI?`6|pZpbTu-p`t++)i7QJzyQBkWUw`s-(Uonf
zCUg7CB)9f$TDIGF>dDZZr=qO4*~``1-pbki|9@-F`{J3t#adg}#;gvht;+tgDl(19
zDA>II+G~fC*^7*pDXmtpoIic*L#Lp%bEc;}biTGDqlKS=<6-i)8LgrchL7|-&4Sye
zb+mu|z3SJaNAG8BUB~9@aQ^npuI%go*3B(l`*q6Ceajc#|FhcSr-#g&e~-3sG#%T~
z`uDc2ta3o#D~AmmHr<W#l6bJAnTJm+mTA_?6^c(zI$nR6zj4{!G`nJl4ZnpLj$JYF
zo~;q#RH$=l%QcU~OKT=ZObjc$rp<NfjK|uNGphoVC(VAe=(0<sr|aiN$EuTht9#U6
zr1x>YjZ1;{T8PpKIO}s{a3PaJS;BV;z6*>#nPyJQR9!N&o}H5tGC-2lm-=IX#>f
zxUlCVvl9Qxyvy~!R>N|co@waF0RMjn9QobA8!PPnw}nCRp>TR_%fhn*?I;Ss|K9>f
Zo-`j`AkEKV_+SMCgGmDe0}Bo80RUaIJbwTH
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 6:19 PM (4 d, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7342242
Default Alt Text
D17721.id42617.diff (6 KB)
Attached To
Mode
D17721: Play a sound when receiving a new chat message
Attached
Detach File
Event Timeline
Log In to Comment