ignore already received chat messages
This commit is contained in:
parent
2d729a9b4e
commit
9e3e56888b
|
@ -223,11 +223,11 @@ export class Community {
|
||||||
while (messageIndex > 0) {
|
while (messageIndex > 0) {
|
||||||
const _message = _messages[messageIndex - 1]
|
const _message = _messages[messageIndex - 1]
|
||||||
|
|
||||||
// if (_message.messageId === chatMessage.messageId) {
|
if (_message.messageId === chatMessage.messageId) {
|
||||||
// messageIndex = -1
|
messageIndex = -1
|
||||||
|
|
||||||
// break
|
break
|
||||||
// }
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
new Date(Number(_message.timestamp)) <=
|
new Date(Number(_message.timestamp)) <=
|
||||||
|
@ -239,10 +239,10 @@ export class Community {
|
||||||
messageIndex--
|
messageIndex--
|
||||||
}
|
}
|
||||||
|
|
||||||
// // already received
|
// already received
|
||||||
// if (messageIndex < 0) {
|
if (messageIndex < 0) {
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
|
|
||||||
// replied
|
// replied
|
||||||
let responsedToMessageIndex = _messages.length
|
let responsedToMessageIndex = _messages.length
|
||||||
|
|
Loading…
Reference in New Issue