converse.js icon indicating copy to clipboard operation
converse.js copied to clipboard

Doesn't handle type "chat" messages from bare hosts correctly, nor allows to add a bare host as contact.

Open maranda opened this issue 6 years ago • 4 comments

Describe the bug Title is self explanatory, I tested using Chrome and Microsoft Edge, on Chrome it shows a notification at least when receiving but doesn't open a tab or anything, on Edge it just discards the message all together.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://inverse.lightwitch.org/#converse/register
  2. Register an account without supplying an E-Mail, after a minute or so the server will send a message from the bare host, on Chrome a notification is received on Edge nothing
  3. It's also impossible to send messages or add a bare host as contact

Expected behavior Converse.js should show a message tab, and it should allow to add bare hosts to the contacts roster.

Environment (please complete the following information):

  • Desktop
  • Chrome, Microsoft Edge
  • Converse.js 5.0.1

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

maranda avatar Dec 03 '19 17:12 maranda

Looks like this is (at least in part) a duplicate of #1509

jcbrand avatar Dec 03 '19 18:12 jcbrand

Well relating to #1509 in this case the server is interacting with the user and expecting him/her to answer back so however you wanna put it, doing like this prevents a user from completing registration on lightwitch.org for example

maranda avatar Dec 03 '19 19:12 maranda

I'll just drop my +1 here.

Would really like to have this as currently none of the warning mechanisms a server can use to notify users of failures is supported (see also: #2683).

This is currently breaking my use-case of using Converse as fallback-client for an XMPP service using mod_e2e_policy as users won't have any way to know why their messages don't arrive.

phryk avatar Oct 11 '21 12:10 phryk

When joining an IRC channel via a Biboumi instance you'll get messages from the bridge: [email protected] and these will not appear in contact list but only show up as notifications.

DEBUG: <message xmlns="jabber:client" xml:lang="en" to="[email protected]/converse.js-15180124" from="[email protected]" type="chat"><archived by="[email protected]" id="1665129515800169" xmlns="urn:xmpp:mam:tmp"/><stanza-id by="[email protected]" id="1665129515800169" xmlns="urn:xmpp:sid:0"/><html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml"><span style="color:green;">servername.server.tld</span>: *** Found your hostname</body></html><no-copy xmlns="urn:xmpp:hints"/><private xmlns="urn:xmpp:carbons:2"/><body>servername.server.tld: *** Found your hostname</body></message>

The tab "unread messages" counter even shows their number.

licaon-kter avatar Oct 07 '22 08:10 licaon-kter