mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
feat: add chat visibility controls and improve quote reader permissions (#6102)
* feat: add chat visibility controls and improve quote reader permissions * fix test * zod * fix * test & openapi * frontend filter * update name * fix * fix * rename variables * fix * test * fix build * fix * fix --------- Co-authored-by: archer <545436317@qq.com>
This commit is contained in:
parent
4fbe27f2df
commit
d8cc4a0d52
|
|
@ -117,9 +117,12 @@ const ChatContent = (props: ChatPageProps) => {
|
|||
};
|
||||
}, [appId, chatId]);
|
||||
|
||||
const loginSuccess = useCallback(async (res: LoginSuccessResponse) => {
|
||||
setUserInfo(res.user);
|
||||
}, []);
|
||||
const loginSuccess = useCallback(
|
||||
async (res: LoginSuccessResponse) => {
|
||||
setUserInfo(res.user);
|
||||
},
|
||||
[setUserInfo]
|
||||
);
|
||||
|
||||
// Waiting for user info to be initialized
|
||||
if (!isInitedUser) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue