mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-02-11 17:55:49 +00:00
remove logs
This commit is contained in:
parent
f6cac4b91f
commit
428994d123
@ -106,7 +106,6 @@ export const encryptAndPublishSymmetricKeyGroupChatForAdmins = async ({groupId,
|
|||||||
previousData: Object,
|
previousData: Object,
|
||||||
}) => {
|
}) => {
|
||||||
try {
|
try {
|
||||||
console.log({groupId, previousData, admins})
|
|
||||||
let highestKey = 0
|
let highestKey = 0
|
||||||
if(previousData){
|
if(previousData){
|
||||||
highestKey = Math.max(...Object.keys((previousData || {})).filter(item=> !isNaN(+item)).map(Number));
|
highestKey = Math.max(...Object.keys((previousData || {})).filter(item=> !isNaN(+item)).map(Number));
|
||||||
@ -129,10 +128,7 @@ export const encryptAndPublishSymmetricKeyGroupChatForAdmins = async ({groupId,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const symmetricKeyAndNonceBase64 = await objectToBase64(objectToSave)
|
const symmetricKeyAndNonceBase64 = await objectToBase64(objectToSave)
|
||||||
console.log({ data64: symmetricKeyAndNonceBase64,
|
|
||||||
publicKeys: groupmemberPublicKeys,
|
|
||||||
privateKey,
|
|
||||||
userPublicKey})
|
|
||||||
const encryptedData = encryptDataGroup({
|
const encryptedData = encryptDataGroup({
|
||||||
data64: symmetricKeyAndNonceBase64,
|
data64: symmetricKeyAndNonceBase64,
|
||||||
publicKeys: groupmemberPublicKeys,
|
publicKeys: groupmemberPublicKeys,
|
||||||
|
@ -102,7 +102,6 @@ export const AppsHomeDesktop = ({
|
|||||||
}}
|
}}
|
||||||
onKeyDown={(e) => {
|
onKeyDown={(e) => {
|
||||||
if (e.key === 'Enter' && qortalUrl) {
|
if (e.key === 'Enter' && qortalUrl) {
|
||||||
console.log('hello')
|
|
||||||
openQortalUrl();
|
openQortalUrl();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
@ -127,7 +127,6 @@ export const AdminSpaceInner = ({
|
|||||||
previousData: adminGroupSecretKey,
|
previousData: adminGroupSecretKey,
|
||||||
admins: adminsWithNames,
|
admins: adminsWithNames,
|
||||||
} }, (response) => {
|
} }, (response) => {
|
||||||
console.log('response', response)
|
|
||||||
if (!response?.error) {
|
if (!response?.error) {
|
||||||
setInfoSnackCustom({
|
setInfoSnackCustom({
|
||||||
type: "success",
|
type: "success",
|
||||||
|
@ -758,7 +758,6 @@ useEffect(() => {
|
|||||||
}
|
}
|
||||||
}, [isPrivate])
|
}, [isPrivate])
|
||||||
|
|
||||||
console.log('isPrivate', isPrivate)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{
|
<div style={{
|
||||||
|
@ -38,7 +38,6 @@ export const ChatList = ({
|
|||||||
const hasLoadedInitialRef = useRef(false);
|
const hasLoadedInitialRef = useRef(false);
|
||||||
const scrollingIntervalRef = useRef(null);
|
const scrollingIntervalRef = useRef(null);
|
||||||
const lastSeenUnreadMessageTimestamp = useRef(null);
|
const lastSeenUnreadMessageTimestamp = useRef(null);
|
||||||
console.log('messages', messages)
|
|
||||||
// Initialize the virtualizer
|
// Initialize the virtualizer
|
||||||
const rowVirtualizer = useVirtualizer({
|
const rowVirtualizer = useVirtualizer({
|
||||||
count: messages.length,
|
count: messages.length,
|
||||||
|
@ -520,7 +520,6 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
(response) => {
|
(response) => {
|
||||||
console.log('response', response)
|
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
rej(response?.message);
|
rej(response?.message);
|
||||||
return;
|
return;
|
||||||
@ -536,7 +535,6 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
|||||||
const responseData = uint8ArrayToObject(
|
const responseData = uint8ArrayToObject(
|
||||||
decryptToUnit8ArraySubject
|
decryptToUnit8ArraySubject
|
||||||
);
|
);
|
||||||
console.log('responseData', responseData)
|
|
||||||
if(Array.isArray(responseData)){
|
if(Array.isArray(responseData)){
|
||||||
saveToLocalStorage("ext_saved_settings_import_export", "sortablePinnedApps", responseData, {
|
saveToLocalStorage("ext_saved_settings_import_export", "sortablePinnedApps", responseData, {
|
||||||
isUsingImportExport: true
|
isUsingImportExport: true
|
||||||
@ -555,7 +553,6 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
|||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
<ButtonBase onClick={async () => {
|
<ButtonBase onClick={async () => {
|
||||||
try {
|
try {
|
||||||
console.log('pinnedApps', pinnedApps)
|
|
||||||
const data64 = await objectToBase64(pinnedApps);
|
const data64 = await objectToBase64(pinnedApps);
|
||||||
|
|
||||||
const encryptedData = await new Promise((res, rej) => {
|
const encryptedData = await new Promise((res, rej) => {
|
||||||
|
@ -57,7 +57,6 @@ useEffect(()=> {
|
|||||||
}, [])
|
}, [])
|
||||||
const showTutorial = useCallback(async (type, isForce) => {
|
const showTutorial = useCallback(async (type, isForce) => {
|
||||||
try {
|
try {
|
||||||
console.log('type, isForce', type, isForce)
|
|
||||||
|
|
||||||
const isOnline = await checkIfGatewayIsOnline()
|
const isOnline = await checkIfGatewayIsOnline()
|
||||||
if(!isOnline) return
|
if(!isOnline) return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user