conversejs / converse.js

Web-based XMPP/Jabber chat client written in JavaScript
http://conversejs.org
Mozilla Public License 2.0
3.08k stars 771 forks source link

Chatbox heading displays jid when user comes online has pending messages when user was offline #1323

Open saurabhb8984 opened 5 years ago

saurabhb8984 commented 5 years ago

Chatbox heading displays jid even if vcard is setup for all users. This happens when user comes online and has pending messages when user was offline.

cha1 chat2

See first image has one pending message, second image, chatbox shows jid.

Let me know if you need more information.

--- Want to back this issue? **[Post a bounty on it!](https://app.bountysource.com/issues/66167237-chatbox-heading-displays-jid-when-user-comes-online-has-pending-messages-when-user-was-offline?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://app.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github).
jcbrand commented 5 years ago

Please add debug: true when calling converse.initialize, use a non-minified converse.js bundle and then add a link to your browser console output here.

Remove the logging of the SASL exchange (the initial login part) from your logs before making them public.

saurabhb8984 commented 5 years ago

I have pasted logs, please see if you can find something. Thanks

Expand to see debug output ``` 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 2 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _processRequest: first request has readyState of 1 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 2.0 posting converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 2.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: 0 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 1.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 1.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 1.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _processRequest: first request has readyState of 1 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 1 should now be removed converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 1.1 got 200 converse.js:71826:7 2018-11-15T11:08:10-06:00 INFO: _dataRecv called converse.js:71828:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 2.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 2.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 2.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 2 should now be removed converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 2.1 got 200 converse.js:71826:7 2018-11-15T11:08:10-06:00 INFO: _dataRecv called converse.js:71828:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:10-06:00 INFO: Message carbons have been enabled. converse.js:71828:7 2018-11-15T11:08:10-06:00 INFO: no requests during idle cycle, sending blank request converse.js:71828:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 3.0 posting converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 3.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 3.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 3.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 3.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 3 should now be removed converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 3.1 got 200 converse.js:71826:7 2018-11-15T11:08:10-06:00 INFO: _dataRecv called converse.js:71828:7 2018-11-15T11:08:10-06:00 DEBUG: 0check jid converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 HTTP load failed with status 404. Load of media resource http://localhost:8080/sounds/msg_received.ogg failed. chat.html NotSupportedError: The media resource indicated by the src attribute or assigned media provider object was not suitable. 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 4.0 posting converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 4.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 HTTP load failed with status 404. Load of media resource http://localhost:8080/sounds/msg_received.mp3 failed. chat.html 2018-11-15T11:08:10-06:00 DEBUG: request id 4.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 4.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 4.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 4 should now be removed converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 4.1 got 200 converse.js:71826:7 2018-11-15T11:08:10-06:00 INFO: _dataRecv called converse.js:71828:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 5.0 posting converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 5.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 5.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 5.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 5.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 5 should now be removed converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 5.1 got 200 converse.js:71826:7 2018-11-15T11:08:10-06:00 INFO: _dataRecv called converse.js:71828:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:10-06:00 INFO: no requests during idle cycle, sending blank request converse.js:71828:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 6.0 posting converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 6.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 6.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 6.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 6.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 6 should now be removed converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 6.1 got 200 converse.js:71826:7 2018-11-15T11:08:10-06:00 INFO: _dataRecv called converse.js:71828:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:10-06:00 INFO: no requests during idle cycle, sending blank request converse.js:71828:7 2018-11-15T11:08:10-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 7.0 posting converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: request id 7.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:10-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 7.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 7.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 7.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 7 should now be removed converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 7.1 got 200 converse.js:71826:7 2018-11-15T11:08:11-06:00 INFO: _dataRecv called converse.js:71828:7 2018-11-15T11:08:11-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 8.0 posting converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 8.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 8.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 8.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 8.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: _throttledRequestHandler called with 0 requests converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 8 should now be removed converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 8.1 got 200 converse.js:71826:7 2018-11-15T11:08:11-06:00 INFO: _dataRecv called converse.js:71828:7 2018-11-15T11:08:11-06:00 DEBUG: converse.js:71826:7 ERROR: An error occured while trying to set archiving preferences. converse.js:71817:5 2018-11-15T11:08:11-06:00 INFO: converse.js:71828:7 2018-11-15T11:08:11-06:00 INFO: no requests during idle cycle, sending blank request converse.js:71828:7 2018-11-15T11:08:11-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 9.0 posting converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: request id 9.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:11-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: _processRequest: first request has readyState of 1 converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: _throttledRequestHandler called with 2 requests converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: _processRequest: first request has readyState of 1 converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: request id 10.0 posting converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: request id 10.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: request id 9.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: request id 9.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: request id 9.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: _processRequest: first request has readyState of 1 converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: request id 9 should now be removed converse.js:71826:7 2018-11-15T11:08:16-06:00 DEBUG: request id 9.1 got 200 converse.js:71826:7 2018-11-15T11:08:16-06:00 INFO: _dataRecv called converse.js:71828:7 2018-11-15T11:08:16-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: _processRequest: first request has readyState of 1 converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: _throttledRequestHandler called with 2 requests converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: _processRequest: first request has readyState of 1 converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: request id 11.0 posting converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: request id 11.0 state changed to 1 converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: request id 10.1 state changed to 2 converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: request id 10.1 state changed to 3 converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: request id 10.1 state changed to 4 converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: removing request converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: _throttledRequestHandler called with 1 requests converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: _processRequest: first request has readyState of 1 converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: request id 10 should now be removed converse.js:71826:7 2018-11-15T11:08:42-06:00 DEBUG: request id 10.1 got 200 converse.js:71826:7 2018-11-15T11:08:42-06:00 INFO: _dataRecv called \```
jcbrand commented 5 years ago

@saurabhb8984 Thanks, but the stanzas aren't included in the logs. This means that the loglevel in your console is not set to include debug (aka verbose) logs.

For example, see here in Chromium:

screen shot 2018-11-15 at 20 13 06
Echolon commented 3 years ago

Isn't this a duplicate of https://github.com/conversejs/converse.js/issues/1314