private void session_SendMessageCompleted(object sender, CommandKeyedCallbackArgs <MessagePack> e)
        {
            uint uin            = 0;
            bool isCommunityMsg = false;

            if (sender == this._contactSession)
            {
                uin            = this._contactSession.Uin;
                isCommunityMsg = false;
            }
            else if (sender == this._communitySession)
            {
                uin            = this._communitySession.Community.Id;
                isCommunityMsg = true;
            }
            else
            {
                return;
            }
            if (e.Code == CallbackCode.Succeeded)
            {
                if (((e.DataCallback != null) && (TXDataHelper.GetDWord(e.DataCallback, SessionMsg.CCSenderExSendData_dwResult) == 7)) && (TXDataHelper.GetDWord(e.DataCallback, SessionMsg.CCSenderExSendData_SensitiveInfo_dwURLID) > 0))
                {
                    ushort word = TXDataHelper.GetWord(e.DataCallback, SessionMsg.wUnlawfulURLTipsID);
                    string str  = ComponentManager.GetGrayURLMgr().QueryBlockURLWarningMsg(false, word);
                    if (!string.IsNullOrEmpty(str))
                    {
                        Util_Misc.NotifyMsgToConversation(uin, isCommunityMsg, str);
                    }
                }
            }
            else
            {
                string msgAbstract = CoreMessenger.Instance.MiscHelper.GetMsgAbstract(e.Key.Key);
                string str4        = CoreMessenger.Instance.MiscHelper.TXLoadString("CF_SEND_C2CMSG_FAILED").Replace("$MSG$", msgAbstract);
                if (!string.IsNullOrEmpty(str4))
                {
                    Util_Misc.NotifyMsgToConversation(uin, isCommunityMsg, str4);
                }
            }
        }
 private void session_SendMessageCompleted(object sender, CommandKeyedCallbackArgs<MessagePack> e)
 {
     uint uin = 0;
     bool isCommunityMsg = false;
     if (sender == this._contactSession)
     {
         uin = this._contactSession.Uin;
         isCommunityMsg = false;
     }
     else if (sender == this._communitySession)
     {
         uin = this._communitySession.Community.Id;
         isCommunityMsg = true;
     }
     else
     {
         return;
     }
     if (e.Code == CallbackCode.Succeeded)
     {
         if (((e.DataCallback != null) && (TXDataHelper.GetDWord(e.DataCallback, SessionMsg.CCSenderExSendData_dwResult) == 7)) && (TXDataHelper.GetDWord(e.DataCallback, SessionMsg.CCSenderExSendData_SensitiveInfo_dwURLID) > 0))
         {
             ushort word = TXDataHelper.GetWord(e.DataCallback, SessionMsg.wUnlawfulURLTipsID);
             string str = ComponentManager.GetGrayURLMgr().QueryBlockURLWarningMsg(false, word);
             if (!string.IsNullOrEmpty(str))
             {
                 Util_Misc.NotifyMsgToConversation(uin, isCommunityMsg, str);
             }
         }
     }
     else
     {
         string msgAbstract = CoreMessenger.Instance.MiscHelper.GetMsgAbstract(e.Key.Key);
         string str4 = CoreMessenger.Instance.MiscHelper.TXLoadString("CF_SEND_C2CMSG_FAILED").Replace("$MSG$", msgAbstract);
         if (!string.IsNullOrEmpty(str4))
         {
             Util_Misc.NotifyMsgToConversation(uin, isCommunityMsg, str4);
         }
     }
 }