vindisel Posted October 7, 2021 Report Posted October 7, 2021 (edited) Hello, receivedOfferChanged isn't triggered when offer is accepted and expects confirmation in mobile app. It works only if offer declined or canceled receivedOfferChanged. If I accept trade and then decline, the status will change from 2 to 7, but should from 9 to 7 if i right. this.TradeOfferManager.on('newOffer', (offer) => { console.log(`New offer: ${offer.state}`) }) this.TradeOfferManager.on('receivedOfferChanged', (offer) => { console.log(`Offer changed state: ${offer.state}`) // it works if offer.state !== 9 }) "steam-tradeoffer-manager": "^2.10.3" this.TradeOfferManager = new TradeOfferManager({ community: community, pollInterval: 5000, }) Edited October 7, 2021 by vindisel Quote
Dr. McKay Posted October 8, 2021 Report Posted October 8, 2021 There's no bug here. State 9 is CreatedNeedsConfirmation. A received offer won't go into state 9, and receivedOfferChanged only gets emitted when an offer changes state. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.