ignore already received chat messages
This commit is contained in:
parent
c416ec3e94
commit
2ac11ab094
|
@ -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