群组内一键添加好友 || One-click to add friends to the group#251
Open
zhanzhangl wants to merge 2 commits intomsgbyte:masterfrom
Open
群组内一键添加好友 || One-click to add friends to the group#251zhanzhangl wants to merge 2 commits intomsgbyte:masterfrom
zhanzhangl wants to merge 2 commits intomsgbyte:masterfrom
Conversation
👷 Deploy request for tailchat-nightly pending review.Visit the deploys page to approve it
|
Author
|
修改密码处添加密码验证规则 Add password verification rules |
moonrailgun
requested changes
Sep 1, 2024
| newPassword: metaFormFieldSchema | ||
| .string() | ||
| .min(6, t('密码不能低于6位')) | ||
| .matches(/[A-Z]/, '密码必须包含大写字母') |
Contributor
There was a problem hiding this comment.
you should wrap with t which can include translation support
| <div className="pt-2">{pluginUserExtraInfoEl}</div> | ||
|
|
||
| <div className="text-right"> | ||
| <Tooltip title={t('添加好友')}> |
Contributor
There was a problem hiding this comment.
i think its should also have a permission check like allowSendMessage because its should can be close if some group dont wanna allow user DM
|
|
||
| // 一键添加好友 | ||
| const [, handleAddFriend] = useAsyncRequest(async () => { | ||
| const { data } = await request.post('/api/friend/request/add', { |
Contributor
There was a problem hiding this comment.
i think you should use addFriendRequest in client/shared/model/friend.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
群组内一键添加好友
One-click to add friends to the group