From 95a1c6bf8b0f80f143e73f73347d074389106dbe Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sat, 29 Apr 2023 17:48:58 +0100 Subject: [PATCH] Added "encoding" parameter to the SEARCH_CHAT_MESSAGES action. --- Q-Apps.md | 1 + src/main/resources/q-apps/q-apps.js | 1 + 2 files changed, 2 insertions(+) diff --git a/Q-Apps.md b/Q-Apps.md index 0f5bc7e8..94f7414f 100644 --- a/Q-Apps.md +++ b/Q-Apps.md @@ -539,6 +539,7 @@ let res = await qortalRequest({ // reference: "reference", // Optional // chatReference: "chatreference", // Optional // hasChatReference: true, // Optional + encoding: "BASE64", // Optional (defaults to BASE58 if omitted) limit: 100, offset: 0, reverse: true diff --git a/src/main/resources/q-apps/q-apps.js b/src/main/resources/q-apps/q-apps.js index 9da494c0..f6075e8e 100644 --- a/src/main/resources/q-apps/q-apps.js +++ b/src/main/resources/q-apps/q-apps.js @@ -264,6 +264,7 @@ window.addEventListener("message", (event) => { if (data.reference != null) url = url.concat("&reference=" + data.reference); if (data.chatReference != null) url = url.concat("&chatreference=" + data.chatReference); if (data.hasChatReference != null) url = url.concat("&haschatreference=" + new Boolean(data.hasChatReference).toString()); + if (data.encoding != null) url = url.concat("&encoding=" + data.encoding); if (data.limit != null) url = url.concat("&limit=" + data.limit); if (data.offset != null) url = url.concat("&offset=" + data.offset); if (data.reverse != null) url = url.concat("&reverse=" + new Boolean(data.reverse).toString());