bedrock-portal 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +3 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -145,6 +145,7 @@ module.exports = class BedrockPortal extends EventEmitter {
|
|
|
145
145
|
|
|
146
146
|
try {
|
|
147
147
|
await this.updateConnection(connectionId);
|
|
148
|
+
await this.updateHandle(this.#createHandleBody('activity'));
|
|
148
149
|
}
|
|
149
150
|
catch (e) {
|
|
150
151
|
debug('Failed to update connection, session may have been abandoned', e);
|
|
@@ -156,6 +157,8 @@ module.exports = class BedrockPortal extends EventEmitter {
|
|
|
156
157
|
this.emit('rtaEvent', { type, subId, data });
|
|
157
158
|
const session = await this.getSession();
|
|
158
159
|
|
|
160
|
+
debug('Received RTA event, session has been updated', session);
|
|
161
|
+
|
|
159
162
|
const sessionMembers = Object.keys(session.members).map(key => session.members[key]).filter(member => member.constants.system.xuid !== this.sessionOwner.xuid);
|
|
160
163
|
const xuids = sessionMembers.map(e => e.constants.system.xuid);
|
|
161
164
|
|