@evo/chat-core
Advanced tools
Comparing version 0.7.11 to 0.7.12
@@ -435,3 +435,8 @@ 'use strict'; | ||
}).catch(function (error) { | ||
sendingMessage = sendingMessage.set('isErrorOnSending', true); | ||
var ourError = error && error.data && error.data.errors || {}; | ||
sendingMessage = sendingMessage.withMutations(function (msg) { | ||
msg.set('isErrorOnSending', true); | ||
msg.set('isSpellingError', (0, _utils.isSpellingError)(Object.keys(ourError)[0])); | ||
}); | ||
updReceiveRoom = (0, _utils.updateMessageById)(baseStore.getIn(roomPath), msgId, sendingMessage); | ||
@@ -438,0 +443,0 @@ baseStore = baseStore.setIn(roomPath, updReceiveRoom); |
@@ -36,2 +36,3 @@ 'use strict'; | ||
exports.getUserRoleInRoom = getUserRoleInRoom; | ||
exports.isSpellingError = isSpellingError; | ||
exports.prepareMessage = prepareMessage; | ||
@@ -271,2 +272,6 @@ exports.prepareContextMessage = prepareContextMessage; | ||
function isSpellingError(error) { | ||
return [c.ERROR_TYPE_STOP_WORD, c.ERROR_TYPE_CAPS_LOCK].includes(error); | ||
} | ||
function prepareMessage(baseStore, msgId, roomIdent, body, platform, source, device) { | ||
@@ -273,0 +278,0 @@ var isTemporaryMessage = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false; |
{ | ||
"name": "@evo/chat-core", | ||
"version": "0.7.11", | ||
"version": "0.7.12", | ||
"description": "core Besida module with base functional set for chat", | ||
@@ -5,0 +5,0 @@ "author": "d.medvinskiy", |
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
61068
1110