On Thu, May 17, 2018 at 05:24:41PM +0200, Jonas Wielicki wrote: > # HG changeset patch > # User Jonas Wielicki <jo...@wielicki.name> > # Date 1526569927 -7200 > # Thu May 17 17:12:07 2018 +0200 > # Node ID 7135601c8a10585e662b647e064e69ecefd6a25f > # Parent 954594126a32ab006f75ca4e5ebbb6a2be96e4c5 > MUC: ensure that x/item/@jid is always a bare JID
Okay, but why tho? This doesn't tell me anything the patch doesn't. > > diff -r 954594126a32 -r 7135601c8a10 plugins/muc/muc.lib.lua > --- a/plugins/muc/muc.lib.lua Thu May 17 17:11:42 2018 +0200 > +++ b/plugins/muc/muc.lib.lua Thu May 17 17:12:07 2018 +0200 > @@ -1311,9 +1311,9 @@ > for _, item in pairs(muc_child.tags) do > if item.name == "item" then > if from_occupant == to_occupant then > - item.attr.jid = stanza.attr.to; > + item.attr.jid = > jid_bare(stanza.attr.to); > else > - item.attr.jid = from_occupant.jid; > + item.attr.jid = > jid_bare(from_occupant.jid); > end > end > end > > -- > You received this message because you are subscribed to the Google Groups > "prosody-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to prosody-dev+unsubscr...@googlegroups.com. > To post to this group, send email to prosody-dev@googlegroups.com. > Visit this group at https://groups.google.com/group/prosody-dev. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "prosody-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to prosody-dev+unsubscr...@googlegroups.com. To post to this group, send email to prosody-dev@googlegroups.com. Visit this group at https://groups.google.com/group/prosody-dev. For more options, visit https://groups.google.com/d/optout.