Fossil SCM
/chat internal doc correction and cleanup. No visible changes.
Commit
243be3ef04b3b9065b1c7f478714350d5904c8729d2fc18650888278281cb265
Parent
cb68b7dc3efb1ad…
1 file changed
+3
-4
+3
-4
| --- src/chat.js | ||
| +++ src/chat.js | ||
| @@ -378,11 +378,11 @@ | ||
| 378 | 378 | }, |
| 379 | 379 | /** |
| 380 | 380 | Sets the current new-message audio alert URI (must be a |
| 381 | 381 | repository-relative path which responds with an audio |
| 382 | 382 | file). Pass a falsy value to disable audio alerts. Returns |
| 383 | - this. This setting is persistent. Returns this. | |
| 383 | + this. | |
| 384 | 384 | */ |
| 385 | 385 | setNewMessageSound: function f(uri){ |
| 386 | 386 | delete this.playNewMessageSound.audio; |
| 387 | 387 | this.playNewMessageSound.uri = uri; |
| 388 | 388 | this.settings.set('audible-alert', !!uri); |
| @@ -409,11 +409,10 @@ | ||
| 409 | 409 | document.body.classList.add('monospace-messages'); |
| 410 | 410 | } |
| 411 | 411 | cs.inputMultilineMode(cs.settings.getBool('edit-multiline',false)); |
| 412 | 412 | cs.chatOnlyMode(cs.settings.getBool('chat-only-mode')); |
| 413 | 413 | cs.pageTitleOrig = cs.e.pageTitle.innerText; |
| 414 | - | |
| 415 | 414 | const qs = (e)=>document.querySelector(e); |
| 416 | 415 | const argsToArray = function(args){ |
| 417 | 416 | return Array.prototype.slice.call(args,0); |
| 418 | 417 | }; |
| 419 | 418 | /** |
| @@ -433,18 +432,18 @@ | ||
| 433 | 432 | */ |
| 434 | 433 | cs.reportErrorAsMessage = function(/*msg args*/){ |
| 435 | 434 | const args = argsToArray(arguments); |
| 436 | 435 | console.error("chat error:",args); |
| 437 | 436 | const d = new Date().toISOString(), |
| 438 | - msg = { | |
| 437 | + mw = new this.MessageWidget({ | |
| 439 | 438 | isError: true, |
| 440 | 439 | xfrom: null, |
| 441 | 440 | msgid: -1, |
| 442 | 441 | mtime: d, |
| 443 | 442 | lmtime: d, |
| 444 | 443 | xmsg: args |
| 445 | - }, mw = new this.MessageWidget(msg); | |
| 444 | + }); | |
| 446 | 445 | this.injectMessageElem(mw.e.body); |
| 447 | 446 | mw.scrollIntoView(); |
| 448 | 447 | }; |
| 449 | 448 | |
| 450 | 449 | cs.getMessageElemById = function(id){ |
| 451 | 450 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -378,11 +378,11 @@ | |
| 378 | }, |
| 379 | /** |
| 380 | Sets the current new-message audio alert URI (must be a |
| 381 | repository-relative path which responds with an audio |
| 382 | file). Pass a falsy value to disable audio alerts. Returns |
| 383 | this. This setting is persistent. Returns this. |
| 384 | */ |
| 385 | setNewMessageSound: function f(uri){ |
| 386 | delete this.playNewMessageSound.audio; |
| 387 | this.playNewMessageSound.uri = uri; |
| 388 | this.settings.set('audible-alert', !!uri); |
| @@ -409,11 +409,10 @@ | |
| 409 | document.body.classList.add('monospace-messages'); |
| 410 | } |
| 411 | cs.inputMultilineMode(cs.settings.getBool('edit-multiline',false)); |
| 412 | cs.chatOnlyMode(cs.settings.getBool('chat-only-mode')); |
| 413 | cs.pageTitleOrig = cs.e.pageTitle.innerText; |
| 414 | |
| 415 | const qs = (e)=>document.querySelector(e); |
| 416 | const argsToArray = function(args){ |
| 417 | return Array.prototype.slice.call(args,0); |
| 418 | }; |
| 419 | /** |
| @@ -433,18 +432,18 @@ | |
| 433 | */ |
| 434 | cs.reportErrorAsMessage = function(/*msg args*/){ |
| 435 | const args = argsToArray(arguments); |
| 436 | console.error("chat error:",args); |
| 437 | const d = new Date().toISOString(), |
| 438 | msg = { |
| 439 | isError: true, |
| 440 | xfrom: null, |
| 441 | msgid: -1, |
| 442 | mtime: d, |
| 443 | lmtime: d, |
| 444 | xmsg: args |
| 445 | }, mw = new this.MessageWidget(msg); |
| 446 | this.injectMessageElem(mw.e.body); |
| 447 | mw.scrollIntoView(); |
| 448 | }; |
| 449 | |
| 450 | cs.getMessageElemById = function(id){ |
| 451 |
| --- src/chat.js | |
| +++ src/chat.js | |
| @@ -378,11 +378,11 @@ | |
| 378 | }, |
| 379 | /** |
| 380 | Sets the current new-message audio alert URI (must be a |
| 381 | repository-relative path which responds with an audio |
| 382 | file). Pass a falsy value to disable audio alerts. Returns |
| 383 | this. |
| 384 | */ |
| 385 | setNewMessageSound: function f(uri){ |
| 386 | delete this.playNewMessageSound.audio; |
| 387 | this.playNewMessageSound.uri = uri; |
| 388 | this.settings.set('audible-alert', !!uri); |
| @@ -409,11 +409,10 @@ | |
| 409 | document.body.classList.add('monospace-messages'); |
| 410 | } |
| 411 | cs.inputMultilineMode(cs.settings.getBool('edit-multiline',false)); |
| 412 | cs.chatOnlyMode(cs.settings.getBool('chat-only-mode')); |
| 413 | cs.pageTitleOrig = cs.e.pageTitle.innerText; |
| 414 | const qs = (e)=>document.querySelector(e); |
| 415 | const argsToArray = function(args){ |
| 416 | return Array.prototype.slice.call(args,0); |
| 417 | }; |
| 418 | /** |
| @@ -433,18 +432,18 @@ | |
| 432 | */ |
| 433 | cs.reportErrorAsMessage = function(/*msg args*/){ |
| 434 | const args = argsToArray(arguments); |
| 435 | console.error("chat error:",args); |
| 436 | const d = new Date().toISOString(), |
| 437 | mw = new this.MessageWidget({ |
| 438 | isError: true, |
| 439 | xfrom: null, |
| 440 | msgid: -1, |
| 441 | mtime: d, |
| 442 | lmtime: d, |
| 443 | xmsg: args |
| 444 | }); |
| 445 | this.injectMessageElem(mw.e.body); |
| 446 | mw.scrollIntoView(); |
| 447 | }; |
| 448 | |
| 449 | cs.getMessageElemById = function(id){ |
| 450 |