Specialize the way chat::Chat class retrieves the package_id: use the context_id of the chat room (if this is a valid chat room)
This will allow to embed a chat::Chat instance in a xowiki page pinting to an existing chat room and let it use the chat package specific features to e.g. keep transcripts of a conversation