INNER CODE UNIT · TypeScript
sendReactionProbe
gommzystudio/device-activity-tracker · src/signal-tracker.ts:283
private async sendReactionProbe() {
const timestamp = Date.now();
const reactions = ['👍', '❤️', '😂', '😮', '😢', '🙏'];
const randomReaction = reactions[Math.floor(Math.random() * reactions.length)];
try {
const response = await fetch(`${this.apiUrl}/v1/reactions/${encodeURIComponent(this.senderNumber)}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
reaction: randomReaction,
recipient: this.targetNumber,
target_author: this.targetNumber,
timestamp: timestamp - 86400000 // Fake timestamp for non-existent message
})
});
if (response.ok || response.status === 204) {