Changing callback signature of registerAnswerer so that it can return a value and not necessarily a promise.

This commit is contained in:
David Négrier 2021-07-02 17:26:28 +02:00
parent 5b4a72ea1f
commit 280c59e6b5
3 changed files with 6 additions and 6 deletions

View file

@ -1045,14 +1045,14 @@ ${escapedMessage}
);
iframeListener.registerAnswerer('getState', () => {
return Promise.resolve({
return {
mapUrl: this.MapUrlFile,
startLayerName: this.startPositionCalculator.startLayerName,
uuid: localUserStore.getLocalUser()?.uuid,
nickname: localUserStore.getName(),
roomId: this.RoomId,
tags: this.connection ? this.connection.getAllTags() : [],
});
};
});
this.iframeSubscriptionList.push(
iframeListener.setTilesStream.subscribe((eventTiles) => {