Some people will like you for no reason, some people will not like you for no reason. Who you choose to spend the most time, thoughts, and efforts on, depend exactly how much you like yourself. By just staying near to people who treat you poorly, you are telling them it's OK to do so. Only keep people close to you who treat you well.