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.