Coder Social home page Coder Social logo

Comments (2)

horazont avatar horazont commented on May 22, 2024

Also affects non-MUC 1:1 conversations.

I wonder if this is related to the occasional non-visibility of history in MUCs, in which case it would be a race-condition inside jclib/jabbercat.

from jabbercat.

horazont avatar horazont commented on May 22, 2024

The race-condition is in jabbercat. The following happens:

  1. A message is received and a "spontaneous" p2p conversation is created, emitting a bunch of creation events.
  2. In those events, the conversation and its view is set up properly. The QWebEngineView is created.
  3. The event handlers return to the p2p handler, which in turn emits on_message for the message which was received.
  4. The on_message event is received by the view, but ignored because the web view has not finished initialising yet.
  5. The web view is ready, messages can now be added normally.

This will be fixed with #26.

(This does not affect MUCs or locally initiated conversations because the Web Engine usually has enough time to initialise before the first message arrives.)

from jabbercat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.