[Standards] Proposed XMPP Extension: JID Mention

Dave Cridland dave at cridland.net
Wed Jan 20 19:43:30 UTC 2016


On 20 January 2016 at 16:43, Goffi <goffi at goffi.org> wrote:

> Hi Dave,
>
> Le mercredi 20 janvier 2016, 16:19:52 Dave Cridland a écrit :
> > > URL: http://xmpp.org/extensions/inbox/jid-mention.html
> >
> > I don't know if you've considered this, but currently the "other end" of
> > the mention has no markup, and so would be performed by string matching
> > either in the client or the server. Both are frail, and subject to
> > mismatches (or typos causing no match at all).
>
> I'm not sure to understand, the "matching syntax" is let to the client
> implementation on purpose (see section 4.1), as I don't want to enforce
> "@nick" syntax because it's the fashion today (but clients can use it if
> they
> want to).
>
> as I imagine it, if a user wants to mention an other user in a blog or a
> conversation, it can press @ (or use a menu, or anything), then the client
> show a list of potential contacts, then the message is sent with the
> <mention>
> element. The mentioned entity receive the message and check the from
> attribute
> (or the <author> element). I don't see where string matching is needed.
>
> But maybe I misunderstood your point. By "other end" are talking about the
> mentioned entity or the mentioning entity?
>
>
The mentioning entity. But really, I'd like to have chatrooms send these
out rather than the mentioning client, and the mention have some markup
injected by the client so we're not string matching *there* - I agree the
client doesn't need to.

So:

1) I mention you in a chatroom:

<message type='groupchat' ...>
  <body>SamWhited, Hey, Goffi's working on something clever.</body>
  <mentions><jid>goffi at example.com</jid><jid>samwhited at example.net
</jid></mentions>
</message>

2) The chatroom (MIX/MUC) can see SamWhited's presence in the room, so
knows he'll see that anyway. But maybe you're offline - so it sends you the
notification so you know to catch up, using the protocol you're proposing.

3) When you're back online, the chatroom might even send the notification
*then*, rather like a lot of bots do now.

Still, all this thinking obviously means I think we should formalize
"mentions" into protocol, so +1 to this spec, even if I think we need to
add in the formalized mention as well as the notification.

++
> Goffi
> _______________________________________________
> Standards mailing list
> Info: http://mail.jabber.org/mailman/listinfo/standards
> Unsubscribe: Standards-unsubscribe at xmpp.org
> _______________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/standards/attachments/20160120/fd453d59/attachment-0001.html>


More information about the Standards mailing list