mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-04-30 23:07:51 +00:00
added q-manager default
This commit is contained in:
parent
fcc1c9abf4
commit
160e3423c8
@ -36,6 +36,10 @@ export const sortablePinnedAppsAtom = atom({
|
|||||||
{
|
{
|
||||||
name: 'NodeInfo',
|
name: 'NodeInfo',
|
||||||
service: 'APP'
|
service: 'APP'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Q-Manager',
|
||||||
|
service: 'APP'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
@ -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: {
|
||||||
|
@ -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')({
|
||||||
|
@ -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")({
|
||||||
|
@ -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')({
|
||||||
|
@ -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")({
|
||||||
|
@ -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);
|
||||||
|
@ -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 = ({
|
||||||
|
@ -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") {
|
||||||
|
@ -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 = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user