Fix recall event loss under high-frequency message operations#1364
Closed
Fix recall event loss under high-frequency message operations#1364
Conversation
Co-authored-by: sj817 <74231782+sj817@users.noreply.github.com>
Co-authored-by: sj817 <74231782+sj817@users.noreply.github.com>
|
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
|
Copilot
AI
changed the title
[WIP] Fix issue with message recall event loss
Fix recall event loss under high-frequency message operations
Nov 7, 2025
Member
|
@copilot 解释一下你的修改 以及这样修改前后的差别 会导致有什么副作用吗? |
Contributor
Author
修改说明原有逻辑(修改前)当检测到自设备撤回消息时:
问题:高频撤回时, 新逻辑(修改后)当检测到自设备撤回消息时:
改进:所有撤回事件都会被立即处理和上报,不会因为等待超时而丢失 行为差异
潜在副作用✅ 无负面副作用:
唯一的行为变化是:自设备撤回消息现在总是会上报事件,而不会因超时而静默丢失。这正是期望的修复效果。 提交: 32df6d5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Recall events are intermittently lost when messages are sent and recalled in rapid succession. The
onMsgRecallhandler waits for a duplicate callback viaregisterListenwhen detecting self-device operations, causing timeouts and dropped events during high-frequency scenarios.Changes
Removed recursive event waiting pattern
registerListencall that waited for duplicateonMsgRecallcallbacksSimplified self-device recall handling
msgfromlettoconstto prevent mutation during async operationsBefore/After
Eliminates race conditions by processing events synchronously without waiting for secondary callbacks.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.