fix(friend): verify and synchronize remark updates
Validate the service result before reporting friend remark changes as successful. Rejected, incomplete, or contradictory confirmations now reach callers instead of being reported as completed. Keep confirmed remarks synchronized in the identity cache and consume cross-client remark updates without exposing a new OneBot event. Local cache failures remain observable without turning an already completed remote change into a retryable failure. Preserve friend remarks exactly across restarts and add request, response, persistence, receive-pipeline, and action-level regression coverage. Fixes #303.
This commit is contained in:
17 files changed
+511
-18
No files matched your search
@@ -105,6 +105,8 @@ const CONVERTERS: ConverterRegistry = {
|
||||
ptt_trans_result: null,
|
||||
// Internal-only cache snapshot consumed by Bridge.getOnlineClients().
|
||||
online_devices_changed: null,
|
||||
// Internal-only identity synchronization from another QQ client.
|
||||
friend_remark_changed: null,
|
||||
};
|
||||
|
||||
export async function convertEvent(
|
||||
|
||||
Reference in new issue
Block a user