-
Notifications
You must be signed in to change notification settings - Fork 18
feat: extract alias from msg #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
0eea568 to
510111d
Compare
|
微信本身数据库没这些东西吗? |
本身是有,原来有一个
一开始是实现了一个 pickle 的版本,后面改为 sqlite。两个实现对于该需求都是可以的,或者也可以使用 json
|
|
也可以 不过感觉增加存储的话要有对应的清除策略 要不会随着使用时间越变越大 |
|
目前 etm 的 tgdata.db 和微信本身的数据库也是会持续增长的,所以在磁盘占用上我觉得用户本身是可以接受的。对于当前需求来说,群昵称数据膨胀到一定极限就不会再膨胀了(理论上当所有的群成员的昵称都被记录过之后) |

微信本身存在已知 bug 会导致群昵称无法正常获取,在小红书上有很多相关反馈。该 pr 使用新的思路从三个来源获取群昵称:
微信会在上述三种消息中添加目标的群昵称,经测试 撤回消息 和 回复消息 均能稳定获取,但 at 消息中存在多种边缘情况,为降低错误率,仅正则匹配 @ 开头且 @ 单人的消息体。
并使用 sqlite 持久化保存群昵称