79485392

Date: 2025-03-05 03:45:03
Score: 3.5
Natty:
Report link

I'm trying to change the status of a message in Mesibo SDK, but it doesn't seem to work. Here’s my code:

arr: any = []; Mesibo_onMessagex = (msg: any) => { arr.push(msg); }

maskUnread() { let msg = arr[0]; // arr[0] has status MESIBO_MSGSTATUS_RECEIVEDREAD
msg.setStatus(MESIBO_MSGSTATUS_RECEIVEDNEW); // Tried passing 18 or MESIBO_MSGSTATUS_RECEIVEDNEW but no luck }

Issue:

I'm receiving messages correctly and storing them in arr. I want to update the status of a message to MESIBO_MSGSTATUS_RECEIVEDNEW (value 18), but setStatus() doesn’t seem to have any effect.

Reasons:
  • Blacklisted phrase (1): no luck
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Danny