Esempio n. 1
0
        public static bool IsSupportConversation(this ChatMsg msg)
        {
            if (msg == null)
            {
                return(false);
            }
            ContactMgr.UserType type = ContactMgr.getUserType(msg.strTalker);
            if (msg.strTalker == "sysnotice")
            {
                return(false);
            }
            if (msg.strTalker == "pc_share")
            {
                return(false);
            }
            if ((type == ContactMgr.UserType.UserTypeNormal) && ContactHelper.IsInVerifiedEntryContact(msg.strTalker))
            {
                return(false);
            }
            if (type == ContactMgr.UserType.UserTypeQQ)
            {
                return(false);
            }
            if (type == ContactMgr.UserType.UserTypeBottle)
            {
                return(false);
            }
            //if ((((type != ContactMgr.UserType.UserTypeChatRoom) && (type != ContactMgr.UserType.UserTypeNormal)) && (type != ContactMgr.UserType.UserTypeQQ)) && ((type != ContactMgr.UserType.UserTypePlugin) || (((msg.strTalker != "weixin") && ((msg.strTalker != "fmessage") || (FMsgMgr.getFMsgType(msg) != FMsgType.other))) && ((!(msg.strTalker == ConstantValue.TAG_BLOGAPP) && !(msg.strTalker == ConstantValue.TAG_NEWS)) && !(msg.strTalker == ConstantValue.TAG_QQMAIL)))))
            if ((((type != ContactMgr.UserType.UserTypeChatRoom) && (type != ContactMgr.UserType.UserTypeNormal)) && (type != ContactMgr.UserType.UserTypeQQ)) && ((type != ContactMgr.UserType.UserTypePlugin) || (((msg.strTalker != "weixin") && ((msg.strTalker != "fmessage"))) && ((!(msg.strTalker == ConstantValue.TAG_BLOGAPP) && !(msg.strTalker == ConstantValue.TAG_NEWS)) && !(msg.strTalker == ConstantValue.TAG_QQMAIL)))))

            {
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
        public static bool IsSupport(this ChatMsg msg)
        {
            if (msg == null)
            {
                return(false);
            }
            ContactMgr.UserType type = ContactMgr.getUserType(msg.strTalker);
            if (msg.strTalker == "sysnotice")
            {
                return(false);
            }
            if (msg.strTalker == "pc_share")
            {
                return(false);
            }
            switch (type)
            {
            case ContactMgr.UserType.UserTypeChatRoom:
            case ContactMgr.UserType.UserTypeNormal:
            case ContactMgr.UserType.UserTypeQQ:
                return(true);
            }
            switch (type)
            {
            case ContactMgr.UserType.UserTypeQQ:
                return(true);

            case ContactMgr.UserType.UserTypeBottle:
                return(true);
            }
            //return (((type == ContactMgr.UserType.UserTypePlugin) && (((msg.strTalker == "weixin") || ((msg.strTalker == "fmessage") && (FMsgMgr.getFMsgType(msg) == FMsgType.other))) || (((msg.strTalker == ConstantValue.TAG_BLOGAPP) || (msg.strTalker == ConstantValue.TAG_NEWS)) || (msg.strTalker == ConstantValue.TAG_QQMAIL)))) || msg.IsPushMsg());
            return(((type == ContactMgr.UserType.UserTypePlugin) && (((msg.strTalker == "weixin") || ((msg.strTalker == "fmessage"))) || (((msg.strTalker == ConstantValue.TAG_BLOGAPP) || (msg.strTalker == ConstantValue.TAG_NEWS)) || (msg.strTalker == ConstantValue.TAG_QQMAIL)))) || msg.IsPushMsg());
        }