Correct the seq logic, fix #1094 (#1232)

This commit is contained in:
sandtechnology 2021-05-02 13:51:21 +08:00 committed by GitHub
parent db4c41f84a
commit 0baaf9d587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,7 +501,7 @@ internal suspend fun MsgComm.Msg.transform(bot: QQAndroidBot, fromSync: Boolean
member.checkIsMemberImpl()
member.lastMessageSequence.loop { instant ->
if (msgHead.msgSeq > instant) {
if (member.lastMessageSequence.value != msgHead.msgSeq && contentHead?.autoReply != 1) {
if (member.lastMessageSequence.compareAndSet(instant, msgHead.msgSeq)) {
return if (fromSync) {
GroupTempMessageSyncEvent(