xmppjs / xmpp.js

XMPP for JavaScript
ISC License
2.18k stars 371 forks source link

Fix Incomming/OutgoingContext to retrieve domain from entity.options #975

Open kizitorashiro opened 1 year ago

kizitorashiro commented 1 year ago

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.