-
-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contacts do not show up online until chat is opened with them. #3123
Comments
When i was connecting via BOSH, it was happening frequently but after switching to websocket it is much better but issue does happen randomly and clicking on Refresh button does not refetch or update the roster. |
Problem persists when I log out and back in. Refresh button does nothing and doesn’t generate any JavaScript console errors. The only time the contact status updates is if I open a chat with a user, that user’s status will update once. |
So, all contacts are shown as offline and then wen you click on a contact to start chatting with them they become green (assuming they're online at that time)? Works fine on my end, I haven't seen this behavior recently. Have you tried on a different browser? Perhaps related to something cached in that specific browser. |
Hello, I also have this behaviour. |
@SilverYoCha Are you using BOSH or websocket? |
I am using websocket @jcbrand. |
I am also having exactly same issue. I am using websocket. |
I'm running ejabberd HEAD, websockets, but not seeing this issue. Can you also state complete server info? |
I have tried it both ways, with the same behavior. Normally run WebSocket.
I have tried with Chrome on Windows, Chrome on Mac, Safari on iOS, and Safari on Mac. Retried using private browsing mode on all. Same behavior everywhere. Doesn't seem to be a caching problem. Running ejabberd 21.01 (Debian Bullseye). |
Ok, oddly enough now I'm seeing it too :( and worse, it does not appear online even if I write messages between the accounts. /LE: log off, log in, contact appears offline, wait a few seconds, view refreshes (like a websockets reconnection), contact appears as online |
I confirm this behaviour. I tested it on the CDN versions 6.0.1, 7.0.5, 8.0.1, 9.1.1 and 10.x.x. BOSH and websocket. With websocket it can be fixed on click at refresh button, but not with BOSH. |
I can confirm this behaviour, too. |
Doing below change in function presenceHandler(presence) in converse.js should fix the issue : |
I will check this, thank you. |
Tried to build it myself with your fix but still didn't work... Am I missing something? |
I did changes in released version. |
@samjunction fyi 7-zip is open source and better than proprietary stuff ffs |
Found out that I was not setting Your fix almost worked 100% for me, now if I reload the page logged as User A I only see the status of User B if they change it, otherwise I see it as offline. |
Should be fixed now. Please let me know if the problem persists somehow. |
That's great! @jcbrand how can I test it? Edit: just built from |
Describe the bug
Since upgrading from Converse 10.0.0 to 10.1.0, every contact in my contact list shows as offline (gray dot and the tooltip says "offline") until I click their name to open the chat with them. Javascript console shows no errors with either version.
Curiously, the contact list does still sort online contacts above offline contacts.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Also verified on my iPhone 11 in Safari.
The text was updated successfully, but these errors were encountered: