You haven’t said what’s not working as you expected. It may also be helpful to share a clone link to your attempt so we can see the other aspects of how you’re applying the roles.
FYI, though, there’s something similar already at Hangouts-like Chat Design
p.s. Welcome to the forum!