Hi everyone!
I’m sending a private message through the user api. using the username ‘system’’
const postData = {
title: messageTitle,
raw: messageBody,
username: 'system',
category: 22,
target_recipients,
archetype: 'private_message',
is_warning: true,
status: 'archived',
enabled: false,
};
// start sending message
try {
const response = await fetch(endpoint, {
method: 'POST',
headers: getHeaders(),
body: JSON.stringify(postData),
});
// Convert the response to JSON
const data = await response.json();
return data;
} catch (error) {
return { errors: ['something went wrong while sending PM'] };
}
However, in the notification, it’s showing ‘2 replies’
But there are actually no replies
What’s even stranger is that this issue only occurs when I send a PM from the live site. Testing from localhost does not trigger the problem.
Any idea?