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

204
Views
¿Cómo verificar si he leído todos los mensajes de un usuario en particular en Mesibo - Javascript?

¿Hay alguna manera de obtener la cantidad total de mensajes de una sesión de lectura en particular usando el SDK de Javascript? Estamos sincronizando y leyendo los mensajes, pero el método de lectura siempre devuelve verdadero, por lo que no podemos verificar si llegamos al final de nuestra lista de mensajes.

Este es un fragmento de código que estamos usando:

 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!