//photon added suresh for Message for non receipt
        public void SendChatMessageWithOutReceipt(TextMessage txtmsg)
        {
            txtmsg.Sent = true;
            ChatMessage msg = new ChatMessage(null);

            msg.From = txtmsg.From;
            msg.To   = txtmsg.To;
            msg.Type = "chat";
            msg.Body = txtmsg.Message;

            if (txtmsg.Thread == null || txtmsg.Thread.Length < 1)
            {
                //txtmsg = ExtractThread(txtmsg);
                ExtractThread(txtmsg);
            }

            msg.Thread = txtmsg.Thread;

            RosterItem item = XMPPClient.FindRosterItem(txtmsg.To);

            if (item != null)
            {
                item.AddSendTextMessage(txtmsg);
                // Notify XMPPClient that a new conversation item has been added
                XMPPClient.FireNewConversationItem(item, false, txtmsg, msg.ID);
            }

            XMPPClient.SendXMPP(msg);
        }
        public void SendChatMessage(TextMessage txtmsg)
        {
            txtmsg.Sent = true;
            ChatMessage msg = new ChatMessage(null);

            msg.From = txtmsg.From;
            msg.To   = txtmsg.To;
            msg.Type = "chat";
            msg.Body = txtmsg.Message;
            //suresh added for message receipt
            msg.InnerXML = "<request xmlns='urn:xmpp:receipts'/>";

            if (txtmsg.Thread == null || txtmsg.Thread.Length < 1)
            {
                //txtmsg = ExtractThread(txtmsg);
                ExtractThread(txtmsg);
            }

            msg.Thread = txtmsg.Thread;

            //msg.InnerXML = string.Format(@"<body>{0}</body>", txtmsg.Message);

            /// Find the roster guy for this message and add it to their conversation
            ///
            RosterItem item = XMPPClient.FindRosterItem(txtmsg.To);

            if (item != null)
            {
                item.AddSendTextMessage(txtmsg);
                //commented due to newconversation for conatct or delay msg send for not in the our roster item
                // Notify XMPPClient that a new conversation item has been added
                // XMPPClient.FireNewConversationItem(item, false, txtmsg,msg.ID);
            }
            XMPPClient.FireNewConversationItem(item, false, txtmsg, msg.ID);
            XMPPClient.SendXMPP(msg);
        }