Skip to content
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

删除/拉黑 好友后,发送的聊天消息对方依然能够收到,我现在想像微信那样被删除后在发送消息的地方给出提示。但是我不太确定该怎么判断。 #25

Open
weixin95827 opened this issue May 21, 2024 · 3 comments

Comments

@weixin95827
Copy link

截屏2024-05-21 12 09 29
@weixin95827
Copy link
Author

这是我目前删除用户后做的一些操作。

@weixin95827
Copy link
Author

photo_2024-05-21_14-46-53

这是作为被删除的用户我收到的sdk的一些返回,但是没监听到。不知道从哪里来的

@tangtaoit
Copy link

tangtaoit commented May 21, 2024

  1. 将这个配置打开 设置为false,表示开启个人白名单判断
image
  1. 添加好友的时候,需要调用api将用户加入到个人白名单内
    https://githubim.com/api/channel.html#%E6%B7%BB%E5%8A%A0%E7%99%BD%E5%90%8D%E5%8D%95

  2. 移除好友,应该就是删除白名单。

  3. 发消息的时候,sdk发消息的时候如果没在用户白名单内,则发不出去,sdk会返回发送失败的reasonCode

https://github.com/WuKongIM/WuKongIMGoProto/blob/main/common.go#L151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants