Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda