refactor: mobile UX friendly

This commit is contained in:
Tristan Yang
2023-02-15 10:04:26 +08:00
parent 476ffc344d
commit 56bd1557db
28 changed files with 71 additions and 77 deletions
+3 -2
View File
@@ -26,7 +26,8 @@ const whiteList = [
"getInitialized",
"createAdmin",
"getBotRelatedChannels",
"sendMessageByBot"
"sendMessageByBot",
"replyWithChatGPT"
];
const baseQuery = fetchBaseQuery({
@@ -41,7 +42,7 @@ const baseQuery = fetchBaseQuery({
});
let waitingForRenew: null | any = null;
const baseQueryWithTokenCheck = async (args, api, extraOptions) => {
const baseQueryWithTokenCheck = async (args: any, api: any, extraOptions: any) => {
if (waitingForRenew) {
await waitingForRenew;
}