chatlog icon indicating copy to clipboard operation
chatlog copied to clipboard

是否能在 Contact 节点添加聊天对象元信息 (flag, 是否置顶,是否折叠等)

Open almdddx opened this issue 10 months ago • 1 comments

在微信 DB v4 里面, contact 表的 flag 字段 -- https://github.com/sjzar/chatlog/blob/d124086e700a25974b3fbac0af099844b827a1e7/internal/model/contact_v4.go#L9

-- 含有通讯录对象是否被置顶,是否为被折叠群聊等元信息。经初步测试,我找到了这些特征:

  • flag & (1<<11) 的对象都是被置顶的聊天对象
  • flag & (1<<28) 的对象都是被折叠的群聊

不知道能否在 HTTP/MCP 的 contactchatroom 接口直接暴露 flag 数值,或者在对 flag 数值进行一定处理之后返回 is_favorite, is_folded 之类的 property?

almdddx avatar Apr 20 '25 12:04 almdddx

没问题,我再确认下 v3 版本的数据情况

sjzar avatar Apr 20 '25 15:04 sjzar