changed file permissions
clear typing status upon receiving message