In the current implementation of Incoming/OutgoingContext, the domain property is being retrieved from the "entity" object. However, the "entity" object inherits from EventEmitter class, which also has a "domain" property. This domain property is the event domain (Domain class), not the XMPP domain (string). The XMPP domain is stored in the "options" property of the "entity" object.
In the current implementation of Incoming/OutgoingContext, the domain property is being retrieved from the "entity" object. However, the "entity" object inherits from EventEmitter class, which also has a "domain" property. This domain property is the event domain (Domain class), not the XMPP domain (string). The XMPP domain is stored in the "options" property of the "entity" object.