matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.51k stars 655 forks source link

User presence accounting problems seeing all people in a room #2597

Open jittygitty opened 1 year ago

jittygitty commented 1 year ago

Background information

Description

Steps to reproduce

Please see Issue Opened on Element-Desktop, but I thought it may be Dendrite issue since just about all clients are affected: https://github.com/vector-im/element-web/issues/22955

jittygitty commented 1 year ago

Also, as I said in https://github.com/vector-im/element-web/issues/22955 It would be nice to have a workaround until this is fixed so that an Admin user can promote another user in channel even if they're invisible due to this bug, so be able to type in a username and promote its privileges etc. Can create a related feature request for this after feedback.

neilalexander commented 1 year ago

Please try with version 0.9.0 and let us know if it's still a problem.

jittygitty commented 1 year ago

@neilalexander I just upgraded to latest 0.9.3+bcdbd5c0 and when I click on people in settings in a room in Android client for example, I still only see myself inside there (even though it had said '2'). And on desktop client I see both of us in the room but it says "offline" when hovering over. Does it require that I do some "init sync" or something else other than restart dendrite?

bekcpear commented 1 year ago

I had the same problem, all of people, even me, showed up as 'offline' on element app. Version 0.10.3

I want to debug it, but don't know how to start.

jittygitty commented 1 year ago

@bekcpear I've been too busy with other things, and so my Dendrite server I think is still on 0.9.3+bcdbd5c0 so can you check your Dendrite server version? Have you updated to the "latest" Dendrite 0.10.3 to see if it helps?

If you use Element "Desktop" app on windows, you can do a Ctrl-Shift-i to open the debug/dev console etc.

bekcpear commented 1 year ago

@jittygitty

Have you updated to the "latest" Dendrite 0.10.3 to see if it helps?

Yes, my dendrite version is 0.10.3, and element version is version: 1.11.10 Olm version: 3.2.12. I confirm that everyone including myself is displayed as offline.

bekcpear commented 1 year ago

ummm, it's my fault, after set

presence:
    enable_inbound: true
    enable_outbound: true

The online status looks good now.

S7evinK commented 1 year ago

Right, without presence you won't see any online/offline users. Keep in mind that this can cause performance issues when in large/active rooms. If you don't want to enable presence but hide the "offline" and greyed out users in Element Web, you'd need to host your own Element Web with a custom config, setting

{
      "enable_presence_by_hs_url": {
        "https://yourHomserverDomain": false
      },
}

Does this resolve the issue?