castle-chat-lib
Advanced tools
Comparing version 2.13.0 to 2.14.0
{ | ||
"name": "castle-chat-lib", | ||
"version": "2.13.0", | ||
"version": "2.14.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -243,2 +243,26 @@ import _ from 'lodash'; | ||
async editMessageAsync(chatMessageId, message, tempChatMessageId = '') { | ||
try { | ||
let result = await this._api.graphqlAsync( | ||
` | ||
mutation($chatMessageId: ID!, $message: String!, $tempChatMessageId: ID) { | ||
editChatMessage(chatMessageId: $chatMessageId, message: $message, tempChatMessageId: $tempChatMessageId) | ||
} | ||
`, | ||
{ | ||
chatMessageId, | ||
message, | ||
tempChatMessageId, | ||
} | ||
); | ||
if (result.errors && result.errors.length) { | ||
throw new Error(result.errors); | ||
} | ||
} catch (e) { | ||
console.log('send message error'); | ||
console.log(JSON.stringify(e)); | ||
} | ||
} | ||
async _subscribedChannelsAsync() { | ||
@@ -245,0 +269,0 @@ const result = await this._api.graphqlAsync( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8164
274