prose-im / prose-app-web

Prose Web application. XMPP client for team messaging.
https://prose.org/downloads
Mozilla Public License 2.0
19 stars 2 forks source link

Displayed Availability seems to be incorrect #35

Closed nesium closed 5 months ago

nesium commented 5 months ago

When I’m in the room with someone I’m seeing myself as available (green dot) but not the other party. If the other party sets itself to “Busy” the participant list correctly displays the red dot. If they switch back to available no dot is visible. I have changed the callback in delegate.ts to log the participants of the rooms and the results on the console are correct. Could you please have a look where this is coming from?

  roomParticipantsChanged(_client: ProseClient, room: Room): void {
    logger.info(`Room participants changed in: ${room.id}`);

    const r = Store.$room.updateRoom(room.id, room);

    logger.warn(
      r.name,
      r.participants.map(p => `${p.name} -> ${p.availability}`)
    );
  }

The green dot is also not visible for a DM chat, although sidebarItems also appear to have the correct values.