-
-
Notifications
You must be signed in to change notification settings - Fork 776
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an
exports
attribute on the _converse
object.
- Loading branch information
Showing
9 changed files
with
61 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -887,8 +887,8 @@ class ChatBox extends ModelWithContact { | |
* will be editable. Otherwise no messages will be editable. | ||
* @method ChatBox#setEditable | ||
* @memberOf ChatBox | ||
* @param { Object } attrs An object containing message attributes. | ||
* @param { String } send_time - time when the message was sent | ||
* @param {Object} attrs An object containing message attributes. | ||
* @param {String} send_time - time when the message was sent | ||
*/ | ||
setEditable (attrs, send_time) { | ||
if (attrs.is_headline || isEmptyMessage(attrs) || attrs.sender !== 'me') { | ||
|
@@ -907,10 +907,8 @@ class ChatBox extends ModelWithContact { | |
* Queue the creation of a message, to make sure that we don't run | ||
* into a race condition whereby we're creating a new message | ||
* before the collection has been fetched. | ||
* @async | ||
* @private | ||
* @method ChatBox#createMessage | ||
* @param { Object } attrs | ||
* @param {Object} attrs | ||
*/ | ||
async createMessage (attrs, options) { | ||
attrs.time = attrs.time || (new Date()).toISOString(); | ||
|
@@ -920,11 +918,10 @@ class ChatBox extends ModelWithContact { | |
|
||
/** | ||
* Responsible for sending off a text message inside an ongoing chat conversation. | ||
* @private | ||
* @method ChatBox#sendMessage | ||
* @memberOf ChatBox | ||
* @param { Object } [attrs] - A map of attributes to be saved on the message | ||
* @returns { Promise<Message> } | ||
* @param {Object} [attrs] - A map of attributes to be saved on the message | ||
* @returns {Promise<Message>} | ||
* @example | ||
* const chat = api.chats.get('[email protected]'); | ||
* chat.sendMessage({'body': 'hello world'}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters