We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c54338 commit 59077cbCopy full SHA for 59077cb
src/extensions/message-handlers/auto-optin/index.js
@@ -32,12 +32,13 @@ export const available = organization => {
32
}
33
34
35
-export const preMessageSave = async ({ messageToSave, organization }) => {
+export const preMessageSave = ({ messageToSave, organization }) => {
36
if (messageToSave.is_from_contact) {
37
const config = Buffer.from(
38
getConfig("AUTO_OPTIN_REGEX_LIST_BASE64", organization) ||
39
- DEFAULT_AUTO_OPTIN_REGEX_LIST_BASE64
40
- );
+ DEFAULT_AUTO_OPTIN_REGEX_LIST_BASE64,
+ "base64"
41
+ ).toString();
42
const regexList = JSON.parse(config || "[]");
43
const matches = regexList.filter(matcher => {
44
const re = new RegExp(matcher.regex); // Want case sensitivity, probably?
0 commit comments