-
Notifications
You must be signed in to change notification settings - Fork 539
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
添加撤回消息功能 #97
Comments
弱弱问一句,我用http客户端,send_text的时候怎么拿到这个id。佬!! |
这问题,类似于:怎么知道一个没出生的孩子身份证号。 |
抱歉才看到消息。 可是send_text只返回了一个“成功”,我没法再次获取这条消息的id。send_text后希望return出这条消息的id,也就是孩子刚出生时返回身份证号 |
哈哈哈哈,我终于明白问题所在了。看看数据库,有没有这消息,有的话找到 |
哪张表是存聊天记录的,看名字应该是ChatMsg.db |
很遗憾,不是。
|
群聊我看查表里面没有字段知道是哪个人发送的,只知道是哪个群id |
同问,现在也是卡在这里。 没办法提取send_text发出去的消息ID |
目前还是待解决,我放弃了撤回功能反正。可以自己去数据库里面找找,应该有存的 |
就是去数据库中找 |
源码中看到了revoke_msg函数用于撤回消息,但消息id我没获取到。或许是我没找到?期待一手
可以考虑在发送消息的时候返回消息的id。对于老版本兼容性,可以考虑增加一个默认字段用于兼容使用老版本的程序段。毕竟也不是每一条消息都需要撤回的,所以id不需要全部提供。
当然更好是我哪里看丢了,如果功能实现了还请麻烦告知啦。撤回消息对于多人等待的提示还是很重要的QAQ
The text was updated successfully, but these errors were encountered: