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', name: 'NodeInfo',
service: 'APP' service: 'APP'
},
{
name: 'Q-Manager',
service: 'APP'
} }
], ],
}); });

View File

@ -2934,7 +2934,7 @@ const checkGroupList = async () => {
try { try {
const wallet = await getSaveWallet(); const wallet = await getSaveWallet();
const address = wallet.address0; 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, { const response = await fetch(url, {
method: "GET", method: "GET",
headers: { headers: {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -59,7 +59,7 @@ export const WebSocketActive = ({ myAddress, setIsLoadingGroups }) => {
pauseAllQueues() 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 = new WebSocket(socketLink);
socketRef.current.onopen = () => { socketRef.current.onopen = () => {