Skip to content

被限制权限的用户可以通过退群重进恢复权限 #79

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

Open
Hentioe opened this issue Aug 7, 2020 · 0 comments
Open

被限制权限的用户可以通过退群重进恢复权限 #79

Hentioe opened this issue Aug 7, 2020 · 0 comments
Labels
1.0-release bug Something isn't working

Comments

@Hentioe
Copy link
Owner

Hentioe commented Aug 7, 2020

目前设想的解决方案:

  1. 在加群时检测用户权限,如果和群设置中的权限有差异,则恢复原有的权限。
  2. 在退群时检测用户权限,如果和群设置中的权限有差异,则生成记录。同时在加群时会检查用户是否存在差异权限记录,有则恢复记录中的权限。

注意:第一种方式可能要调用 API 来获取权限,会导致加群延迟变高。第二种方式则要建立新表。如第一种方式有不需要通过 API 拿到权限信息的途径则优先考虑第一种,否则第二种。

@Hentioe Hentioe added bug Something isn't working public beta 1.0-release and removed public beta labels Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0-release bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant