synchronize message received flag and delete thread feature