Fossil SCM
Do not play notification sound for the sender's own messages. This change was made and reverted before so may be subject to further debate.
Commit
87c29eee983cb018a3194a96e9ef33efa78c29505c0d9ad261d5f7dad8438bfe
Parent
b2d55ec9475ad00…
1 file changed
+3
-1
+3
-1
| --- src/fossil.page.chat.js | ||
| +++ src/fossil.page.chat.js | ||
| @@ -1600,11 +1600,13 @@ | ||
| 1600 | 1600 | if( m.mdel ){ |
| 1601 | 1601 | /* A record deletion notice. */ |
| 1602 | 1602 | Chat.deleteMessageElem(m.mdel); |
| 1603 | 1603 | return; |
| 1604 | 1604 | } |
| 1605 | - if(!Chat._isBatchLoading /*&& Chat.me!==m.xfrom*/ && Chat.playNewMessageSound){ | |
| 1605 | + if(!Chat._isBatchLoading | |
| 1606 | + && Chat.me!==m.xfrom | |
| 1607 | + && Chat.playNewMessageSound){ | |
| 1606 | 1608 | Chat.playNewMessageSound(); |
| 1607 | 1609 | } |
| 1608 | 1610 | const row = new Chat.MessageWidget(m); |
| 1609 | 1611 | Chat.injectMessageElem(row.e.body,atEnd); |
| 1610 | 1612 | if(m.isError){ |
| 1611 | 1613 |
| --- src/fossil.page.chat.js | |
| +++ src/fossil.page.chat.js | |
| @@ -1600,11 +1600,13 @@ | |
| 1600 | if( m.mdel ){ |
| 1601 | /* A record deletion notice. */ |
| 1602 | Chat.deleteMessageElem(m.mdel); |
| 1603 | return; |
| 1604 | } |
| 1605 | if(!Chat._isBatchLoading /*&& Chat.me!==m.xfrom*/ && Chat.playNewMessageSound){ |
| 1606 | Chat.playNewMessageSound(); |
| 1607 | } |
| 1608 | const row = new Chat.MessageWidget(m); |
| 1609 | Chat.injectMessageElem(row.e.body,atEnd); |
| 1610 | if(m.isError){ |
| 1611 |
| --- src/fossil.page.chat.js | |
| +++ src/fossil.page.chat.js | |
| @@ -1600,11 +1600,13 @@ | |
| 1600 | if( m.mdel ){ |
| 1601 | /* A record deletion notice. */ |
| 1602 | Chat.deleteMessageElem(m.mdel); |
| 1603 | return; |
| 1604 | } |
| 1605 | if(!Chat._isBatchLoading |
| 1606 | && Chat.me!==m.xfrom |
| 1607 | && Chat.playNewMessageSound){ |
| 1608 | Chat.playNewMessageSound(); |
| 1609 | } |
| 1610 | const row = new Chat.MessageWidget(m); |
| 1611 | Chat.injectMessageElem(row.e.body,atEnd); |
| 1612 | if(m.isError){ |
| 1613 |