refactor: mobile UX friendly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ export const onMessageSendStarted = async (
|
||||
|
||||
try {
|
||||
const { data: server_mid } = await queryFulfilled;
|
||||
// throw new Error();
|
||||
// console.log("message server mid", server_mid);
|
||||
batch(() => {
|
||||
dispatch(removeContextMessage({ id, mid: ts }));
|
||||
|
||||
Reference in New Issue
Block a user