In my V2 implemention of the thread.replied webhook, I had to check if the reply was triggered by the sneder or by the recipient doing this:
$data = json_decode($request->getContent());
$deltas = $data->deltas[0];
$threadId = $deltas->object_data->metadata->thread_id;
$logger->warning('We received a response for Thread ID: ' . $threadId);
// from_self value will be set to true when a user replies to their own thread.
//Therefore not accounted as an answer
if ($deltas->object_data->metadata->from_self || $deltas->object_data->metadata->from_self == "true") {
$logger->warning('Thread ID: ' . $threadId . ' was not paused because it was responded from it\'s on sender.');
return new JsonResponse(null, 200);
}
I cannot find a from_self field in the thread.replied webhook response, What should I do about that?
Hello @Yohann sorry for the wait, the platform team is looking at this, but they’re busy with other things as well so it might take them so time…will keep you updated
It is unfortunate to observe that after almost 2 weeks I still can’t get a response. Nylas forced us to transition from V2 to V3 when its value prop was to help us save time with development. You should have come up with a team of engineers that help your clients smoothen this transition.
@Yohann I gave you a response, which is that there is a ticket and it’s been taking care of. I know not at the speed that you need, but it will be fixed for sure. Sorry about any delays or problems found
Hello @Yohann you’re right I just test this on Pipedream and couldn’t found the field either I have updated the ticket to engineering asking for clarification…will keep you posted…