One of our talented designers, @chapoi voiced this idea late last year.
This is definitely something we have toyed around playing with in a theme component. I’d go further and say this isn’t just a chat specific feature as well. The other large software using this design is Notion, which is based primarily on document/topic structure that forums tend to use.