castle-chat-lib
Advanced tools
Comparing version 2.7.0 to 2.8.0
{ | ||
"name": "castle-chat-lib", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -88,7 +88,12 @@ import _ from 'lodash'; | ||
let message = messages[i]; | ||
if (this._seenChatIds[message.chatMessageId]) { | ||
continue; | ||
if (message.editCount > this._seenChatIds[message.chatMessageId]) { | ||
message.isEdit = true; | ||
} else { | ||
continue; | ||
} | ||
} | ||
this._seenChatIds[message.chatMessageId] = true; | ||
this._seenChatIds[message.chatMessageId] = message.editCount; | ||
@@ -127,3 +132,3 @@ let newMessage = { | ||
for (let i = 0; i < chatMessageIds.length; i++) { | ||
this._seenChatIds[chatMessageIds[i]] = false; | ||
delete this._seenChatIds[chatMessageIds[i]]; | ||
} | ||
@@ -162,2 +167,4 @@ } | ||
fromUserId | ||
isEdited | ||
editCount | ||
body | ||
@@ -260,2 +267,4 @@ createdTime | ||
fromUserId | ||
isEdited | ||
editCount | ||
body | ||
@@ -262,0 +271,0 @@ createdTime |
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
7159
245