added q-manager default

This commit is contained in:
PhilReact 2024-12-01 15:08:30 +02:00
parent fcc1c9abf4
commit 160e3423c8
10 changed files with 21 additions and 11 deletions

View File

@ -36,6 +36,10 @@ export const sortablePinnedAppsAtom = atom({
{
name: 'NodeInfo',
service: 'APP'
},
{
name: 'Q-Manager',
service: 'APP'
}
],
});

View File

@ -2934,7 +2934,7 @@ const checkGroupList = async () => {
try {
const wallet = await getSaveWallet();
const address = wallet.address0;
const url = await createEndpoint(`/chat/active/${address}`);
const url = await createEndpoint(`/chat/active/${address}?encoding=BASE64&haschatreference=false`);
const response = await fetch(url, {
method: "GET",
headers: {

View File

@ -41,7 +41,8 @@ const officialAppList = [
"q-shop",
"q-trade",
"q-support",
"nodeinfo"
"nodeinfo",
"q-manager"
];
const ScrollerStyled = styled('div')({

View File

@ -47,6 +47,7 @@ const officialAppList = [
"qombo",
"q-fund",
"q-shop",
"q-manager"
];
const ScrollerStyled = styled("div")({

View File

@ -44,7 +44,8 @@ const officialAppList = [
"q-shop",
"q-trade",
"q-support",
"nodeinfo"
"nodeinfo",
"q-manager"
];
const ScrollerStyled = styled('div')({

View File

@ -55,6 +55,7 @@ const officialAppList = [
"qombo",
"q-fund",
"q-shop",
"q-manager"
];
const ScrollerStyled = styled("div")({

View File

@ -74,14 +74,12 @@ export const ChatGroup = ({selectedGroup, secretKey, setSecretKey, getSecretKey,
window.sendMessage("addTimestampEnterChat", {
timestamp: Date.now(),
groupId: selectedGroup
}).then((res)=> {
getTimestampEnterChatParent();
}).catch((error) => {
console.error("Failed to add timestamp:", error.message || "An error occurred");
});
setTimeout(() => {
getTimestampEnterChatParent();
}, 600);
}
res(response);

View File

@ -20,6 +20,7 @@ import { getFee } from "../../background";
import RefreshIcon from "@mui/icons-material/Refresh";
import { Spacer } from "../../common/Spacer";
import OpenInNewIcon from "@mui/icons-material/OpenInNew";
import { CustomLoader } from "../../common/CustomLoader";
export const PollCard = ({

View File

@ -913,6 +913,9 @@ export const Group = ({
window.sendMessage("addTimestampEnterChat", {
timestamp: Date.now(),
groupId: selectedGroupRef.current.groupId,
}).then((res)=> {
getTimestampEnterChat();
}).catch((error) => {
console.error("Failed to add timestamp:", error.message || "An error occurred");
});
@ -922,14 +925,14 @@ export const Group = ({
window.sendMessage("addTimestampEnterChat", {
timestamp: Date.now(),
groupId: selectedDirectRef.current.address,
}).then((res)=> {
getTimestampEnterChat();
}).catch((error) => {
console.error("Failed to add timestamp:", error.message || "An error occurred");
});
}
setTimeout(() => {
getTimestampEnterChat();
}, 600);
}
if (message?.action === "SET_GROUP_ANNOUNCEMENTS") {

View File

@ -59,7 +59,7 @@ export const WebSocketActive = ({ myAddress, setIsLoadingGroups }) => {
pauseAllQueues()
}
const socketLink = `${getBaseApiReactSocket()}/websockets/chat/active/${currentAddress}?encoding=BASE64`;
const socketLink = `${getBaseApiReactSocket()}/websockets/chat/active/${currentAddress}?encoding=BASE64&haschatreference=false`;
socketRef.current = new WebSocket(socketLink);
socketRef.current.onopen = () => {