mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-23 04:36:52 +00:00
remove logs
This commit is contained in:
@@ -261,12 +261,7 @@ export const GroupMail = ({
|
||||
async (groupId: string, members: any) => {
|
||||
try {
|
||||
setIsLoading(true)
|
||||
// const memberNames = Object.keys(members);
|
||||
// const queryString = memberNames
|
||||
// .map(name => `&name=${encodeURIComponent(name)}`)
|
||||
// .join("");
|
||||
|
||||
// dispatch(setIsLoadingCustom("Loading recent threads"));
|
||||
const identifier = `thmsg-grp-${groupId}-thread-`;
|
||||
const url = `${getBaseApiReact()}${getArbitraryEndpointReact()}?mode=ALL&service=${threadIdentifier}&identifier=${identifier}&limit=100&includemetadata=false&offset=${0}&reverse=true&prefix=true`;
|
||||
const response = await fetch(url, {
|
||||
@@ -432,19 +427,7 @@ export const GroupMail = ({
|
||||
}
|
||||
}, []);
|
||||
|
||||
// useEffect(() => {
|
||||
// if(groupId){
|
||||
// getGroupMembers(groupId);
|
||||
// interval.current = setInterval(async () => {
|
||||
// getGroupMembers(groupId);
|
||||
// }, 180000)
|
||||
// }
|
||||
// return () => {
|
||||
// if (interval?.current) {
|
||||
// clearInterval(interval.current)
|
||||
// }
|
||||
// }
|
||||
// }, [getGroupMembers, groupId]);
|
||||
|
||||
|
||||
|
||||
let listOfThreadsToDisplay = recentThreads;
|
||||
|
@@ -203,7 +203,6 @@ export const decryptResource = async (data: string) => {
|
||||
data,
|
||||
})
|
||||
.then((response) => {
|
||||
console.log('decryptseroucs', response)
|
||||
if (!response?.error) {
|
||||
res(response);
|
||||
return;
|
||||
@@ -440,7 +439,6 @@ export const Group = ({
|
||||
const [appsMode, setAppsMode] = useState('home')
|
||||
const [isOpenSideViewDirects, setIsOpenSideViewDirects] = useState(false)
|
||||
const [isOpenSideViewGroups, setIsOpenSideViewGroups] = useState(false)
|
||||
console.log('groups', groups)
|
||||
const toggleSideViewDirects = ()=> {
|
||||
if(isOpenSideViewGroups){
|
||||
setIsOpenSideViewGroups(false)
|
||||
@@ -896,9 +894,7 @@ export const Group = ({
|
||||
// Handler function for incoming messages
|
||||
const messageHandler = (event) => {
|
||||
const message = event.data;
|
||||
console.log('SET_GROUPS100', event)
|
||||
if (message?.action === "SET_GROUPS") {
|
||||
console.log('SET_GROUPS200', event)
|
||||
|
||||
// Update the component state with the received 'sendqort' state
|
||||
setGroups(message.payload);
|
||||
|
@@ -50,7 +50,6 @@ export const WebSocketActive = ({ myAddress, setIsLoadingGroups }) => {
|
||||
socketRef.current = new WebSocket(socketLink);
|
||||
|
||||
socketRef.current.onopen = () => {
|
||||
console.log('WebSocket connection opened');
|
||||
setTimeout(pingHeads, 50); // Initial ping
|
||||
};
|
||||
|
||||
@@ -72,7 +71,6 @@ export const WebSocketActive = ({ myAddress, setIsLoadingGroups }) => {
|
||||
const sortedDirects = (data?.direct || []).filter(item =>
|
||||
item?.name !== 'extension-proxy' && item?.address !== 'QSMMGSgysEuqDCuLw3S4cHrQkBrh3vP3VH'
|
||||
).sort((a, b) => (b.timestamp || 0) - (a.timestamp || 0));
|
||||
console.log('sortedGroups', sortedGroups)
|
||||
|
||||
window.sendMessage("handleActiveGroupDataFromSocket", {
|
||||
groups: sortedGroups,
|
||||
|
Reference in New Issue
Block a user