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.
Commit
85b139c3abc2ca0eb5525dd9bdcdcc78e4d37df44a34659ef33d66a09a63bacb
Parent
e86aeb72ac213db…
1 file changed
+1
-1
+1
-1
| --- src/chat.js | ||
| +++ src/chat.js | ||
| @@ -1103,11 +1103,11 @@ | ||
| 1103 | 1103 | if( m.mdel ){ |
| 1104 | 1104 | /* A record deletion notice. */ |
| 1105 | 1105 | Chat.deleteMessageElem(m.mdel); |
| 1106 | 1106 | return; |
| 1107 | 1107 | } |
| 1108 | - if(!Chat._isBatchLoading && Chat.me!==m.xfrom && Chat.playNewMessageSound){ | |
| 1108 | + if(!Chat._isBatchLoading /*&& Chat.me!==m.xfrom*/ && Chat.playNewMessageSound){ | |
| 1109 | 1109 | Chat.playNewMessageSound(); |
| 1110 | 1110 | } |
| 1111 | 1111 | const row = new Chat.MessageWidget(m); |
| 1112 | 1112 | Chat.injectMessageElem(row.e.body,atEnd); |
| 1113 | 1113 | if(m.isError){ |
| 1114 | 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 |
| --- 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 |