Indirect genetic effects (IGEs) are a major driver of social evolution. We examined how stimulus genotypes influence sociability of several focals. Focals' sociability was significantly affected by the stimulus genotypes. A mechanism mediating this effect was the encounter rate between focal flies. Focals' encounter rates were lower when grouped with more cohesive stimulus flies.