Jump to content
McKay Development

receivedOfferChanged isn't triggered when offer is accepted and expects confirmation in mobile app


Recommended Posts

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 by vindisel
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...