Try to make her understand.
If she does not listen to you then ask (she may has any problem at home)
Try to help her to take out of that. If everything fails then stop talking & sitting with her.
If she is your real friend then she will adopt good habits for your sake.