feat: 绑定新邮箱时创建独立邮箱用户并转移订阅,而非挂在设备用户上
Build docker and publish / build (20.15.1) (push) Successful in 8m5s

- bindEmailWithVerificationLogic: 新邮箱路径改为创建独立 email user + joinFamily
- familyBindingHelper: clearMemberSubscribes → transferMemberSubscribesToOwner,订阅转移给 owner 而非删除
- accountMergeHelper: 同步更新调用点

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
2026-03-12 00:52:50 -07:00
parent ec39579c39
commit a3cc23bbd4
3 changed files with 48 additions and 16 deletions
@@ -74,7 +74,7 @@ func (h *accountMergeHelper) mergeIntoOwner(ownerUserID, deviceUserID int64, sou
return err
}
removedSubscribes, err := clearMemberSubscribes(tx, deviceUserID)
removedSubscribes, err := transferMemberSubscribesToOwner(tx, deviceUserID, ownerUserID)
if err != nil {
return err
}