Move WeChat official accounts to a single space #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
解决 #17 和 #11 中提到的问题。
修改
user.official_account_space_room
字段,用来保存为公众号创建的 Space 对应的 IDuser_portal.in_official_account_space
字段bridge.space_for_official_accounts
,默认值为true
bridge.personal_filtering_spaces
默认值为true
效果
sync space
之后会自动将公众号移动到 WeChat Official Accounts 的 Space 中从旧版本升级:
目前可能存在的问题
如果使用了
bridge.space_for_official_accounts
,再关闭之后执行sync space
会将所有聊天都同步到默认的 Space,但不会清理之前创建的 WeChat Official Accounts 这个 Space 中的聊天,也不会删除这个 Space。新的聊天不会再被加入这个 Space 中。还有一些少量的服务号(比如美团支付提醒、腾讯企业邮箱),以及来自企业微信的聊天,没有做分类,都归类在了默认的 Space 中。