Modern XMPP has some guidelines for that.

https://docs.modernxmpp.org/client/design/#generator-input-based-on-context

We could consider to review and maybe update some of those now that occupant ids exists.