mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-03-15 04:12:32 +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',
|
||||
service: 'APP'
|
||||
},
|
||||
{
|
||||
name: 'Q-Manager',
|
||||
service: 'APP'
|
||||
}
|
||||
],
|
||||
});
|
||||
|
@ -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: {
|
||||
|
@ -41,7 +41,8 @@ const officialAppList = [
|
||||
"q-shop",
|
||||
"q-trade",
|
||||
"q-support",
|
||||
"nodeinfo"
|
||||
"nodeinfo",
|
||||
"q-manager"
|
||||
];
|
||||
|
||||
const ScrollerStyled = styled('div')({
|
||||
|
@ -47,6 +47,7 @@ const officialAppList = [
|
||||
"qombo",
|
||||
"q-fund",
|
||||
"q-shop",
|
||||
"q-manager"
|
||||
];
|
||||
|
||||
const ScrollerStyled = styled("div")({
|
||||
|
@ -44,7 +44,8 @@ const officialAppList = [
|
||||
"q-shop",
|
||||
"q-trade",
|
||||
"q-support",
|
||||
"nodeinfo"
|
||||
"nodeinfo",
|
||||
"q-manager"
|
||||
];
|
||||
|
||||
const ScrollerStyled = styled('div')({
|
||||
|
@ -55,6 +55,7 @@ const officialAppList = [
|
||||
"qombo",
|
||||
"q-fund",
|
||||
"q-shop",
|
||||
"q-manager"
|
||||
];
|
||||
|
||||
const ScrollerStyled = styled("div")({
|
||||
|
@ -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);
|
||||
|
@ -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 = ({
|
||||
|
@ -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") {
|
||||
|
@ -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 = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user