Fossil SCM

chat: Emit the audiable alert sound even for your own messages. This is an interim measure to help us debug intermittent sound problems on some platforms. This change will probably be backed out at some point in the future.

drh 2021-01-07 17:42 trunk
Commit 85b139c3abc2ca0eb5525dd9bdcdcc78e4d37df44a34659ef33d66a09a63bacb
1 file changed +1 -1
+1 -1
--- src/chat.js
+++ src/chat.js
@@ -1103,11 +1103,11 @@
11031103
if( m.mdel ){
11041104
/* A record deletion notice. */
11051105
Chat.deleteMessageElem(m.mdel);
11061106
return;
11071107
}
1108
- if(!Chat._isBatchLoading && Chat.me!==m.xfrom && Chat.playNewMessageSound){
1108
+ if(!Chat._isBatchLoading /*&& Chat.me!==m.xfrom*/ && Chat.playNewMessageSound){
11091109
Chat.playNewMessageSound();
11101110
}
11111111
const row = new Chat.MessageWidget(m);
11121112
Chat.injectMessageElem(row.e.body,atEnd);
11131113
if(m.isError){
11141114
--- src/chat.js
+++ src/chat.js
@@ -1103,11 +1103,11 @@
1103 if( m.mdel ){
1104 /* A record deletion notice. */
1105 Chat.deleteMessageElem(m.mdel);
1106 return;
1107 }
1108 if(!Chat._isBatchLoading && Chat.me!==m.xfrom && Chat.playNewMessageSound){
1109 Chat.playNewMessageSound();
1110 }
1111 const row = new Chat.MessageWidget(m);
1112 Chat.injectMessageElem(row.e.body,atEnd);
1113 if(m.isError){
1114
--- src/chat.js
+++ src/chat.js
@@ -1103,11 +1103,11 @@
1103 if( m.mdel ){
1104 /* A record deletion notice. */
1105 Chat.deleteMessageElem(m.mdel);
1106 return;
1107 }
1108 if(!Chat._isBatchLoading /*&& Chat.me!==m.xfrom*/ && Chat.playNewMessageSound){
1109 Chat.playNewMessageSound();
1110 }
1111 const row = new Chat.MessageWidget(m);
1112 Chat.injectMessageElem(row.e.body,atEnd);
1113 if(m.isError){
1114

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button