Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

195
Views
How to check if I've read all messages of a particular user in Mesibo - Javascript?

Is there a way to get the number of total messages of a particular read session using the Javascript SDK? We're syncing and reading the messages but the read method always returns true so we are not able to check wether we reached the end of our messages list.

This is a code snippet we're using:

async syncApp(user: string, readCount: number) {
    const on_read = (count: any) => {
        let msgs = mReadSession.getMessages();
    };

    let mReadSession = await this.mesibo.getInstance().readDbSession(user, 0, null, on_read)

// `res` is always true
    let res = await mReadSession.read(readCount);


    if (res < readCount) {
        mReadSession.sync(readCount - res, on_read)
    }

    return mReadSession;
}

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!