From 2547025d9e04ba31a53249de632c86ff24c1fe5a Mon Sep 17 00:00:00 2001 From: AlphaX-Qortal <67390536+AlphaX-Qortal@users.noreply.github.com> Date: Tue, 25 Feb 2025 10:24:18 +0100 Subject: [PATCH] Fix typo --- crypto/api/transactions/chat/decryptChatMessage.js | 2 +- plugins/plugins/core/components/ChatPage.js | 2 +- plugins/plugins/core/components/ChatScroller.js | 2 +- plugins/plugins/core/components/webworkerDecodeMessages.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/api/transactions/chat/decryptChatMessage.js b/crypto/api/transactions/chat/decryptChatMessage.js index a7497272..c00d4d77 100644 --- a/crypto/api/transactions/chat/decryptChatMessage.js +++ b/crypto/api/transactions/chat/decryptChatMessage.js @@ -54,7 +54,7 @@ export const decryptChatMessageBase64 = (encryptedMessage, privateKey, recipient if (decrypted1.includes('messageText')) { let decrypted2 = JSON.parse(decrypted1) - let decrypted3 = Object.assign(decrypted2, {isFrivate: true}) + let decrypted3 = Object.assign(decrypted2, {isPrivate: true}) return JSON.stringify(decrypted3) } diff --git a/plugins/plugins/core/components/ChatPage.js b/plugins/plugins/core/components/ChatPage.js index d8302976..3b675538 100644 --- a/plugins/plugins/core/components/ChatPage.js +++ b/plugins/plugins/core/components/ChatPage.js @@ -1681,7 +1681,7 @@ class ChatPage extends LitElement { const getMembersAdmins = await parentEpml.request("apiCall", { type: "api", - url: `/groups/members/${groupId}?onlyAdmins=true&limit=20` + url: `/groups/members/${groupId}?onlyAdmins=true&limit=0` }) const getGroupInfo = await parentEpml.request("apiCall", { diff --git a/plugins/plugins/core/components/ChatScroller.js b/plugins/plugins/core/components/ChatScroller.js index 47c4593a..13c5d3c4 100644 --- a/plugins/plugins/core/components/ChatScroller.js +++ b/plugins/plugins/core/components/ChatScroller.js @@ -1107,7 +1107,7 @@ class MessageTemplate extends LitElement { version = parsedMessageObj.version isForwarded = parsedMessageObj.type === 'forward' isEdited = parsedMessageObj.isEdited && true - isEncrypted = parsedMessageObj.isFromHub || parsedMessageObj.isFrivate || parsedMessageObj.message ? true : false + isEncrypted = parsedMessageObj.isFromHub || parsedMessageObj.isPrivate || parsedMessageObj.message ? true : false if (parsedMessageObj.images && Array.isArray(parsedMessageObj.images) && parsedMessageObj.images.length > 0) { image = parsedMessageObj.images[0] diff --git a/plugins/plugins/core/components/webworkerDecodeMessages.js b/plugins/plugins/core/components/webworkerDecodeMessages.js index 8f3d8c71..2e1a3015 100644 --- a/plugins/plugins/core/components/webworkerDecodeMessages.js +++ b/plugins/plugins/core/components/webworkerDecodeMessages.js @@ -2897,7 +2897,7 @@ export const decryptChatMessageBase64 = (encryptedMessage, privateKey, recipient if (decrypted1.includes('messageText')) { let decrypted2 = JSON.parse(decrypted1) - let decrypted3 = Object.assign(decrypted2, {isFrivate: true}) + let decrypted3 = Object.assign(decrypted2, {isPrivate: true}) return JSON.stringify(decrypted3) }