Ejemplo n.º 1
0
        private void HandleMulticastStanza(XmppStream stream, Stanza stanza, XmppHandlerContext context)
        {
            var addresses = stanza.SelectSingleElement <Addresses>();

            if (addresses != null)
            {
                var jids = addresses.GetAddressList();

                addresses.RemoveAllBcc();
                Array.ForEach(addresses.GetAddresses(), a => a.Delivered = true);

                var handlerManager = (XmppHandlerManager)context.ServiceProvider.GetService(typeof(XmppHandlerManager));
                foreach (var to in jids)
                {
                    stanza.To = to;
                    handlerManager.ProcessStreamElement(stanza, stream);
                }
            }
        }