discord / discord-rpc

https://discordapp.com/developers
MIT License
1.06k stars 331 forks source link

Discord rich presence for explicitly added application overrides the Rich presence updated via Discord_UpdatePresence #235

Open anupbelambe opened 6 years ago

anupbelambe commented 6 years ago

Discord rich presence for explicitly added application through discord settings overrides the Rich presence updated via Discord_UpdatePresence. As soon as application is launched it shows the default rich presence (with no image) with application name. But even if Discord_UpdatePresence is called once the application is loaded, it still continues to show the default rich presence. Expected it show the detailed rich presence shared using Discord_UpdatePresence

RuiNtD commented 6 years ago

Can you share a snippet of your code? Also, what operating system are you using?

anupbelambe commented 6 years ago

We should be able to repro the issue with https://github.com/Pizzabelly/EasyRP sample application. I was seeing this problem on windows and mac.

Interestingly, it seems to be working as expected with latest Discord update.

  1. First shows the default rich presence (due to application detection, added in settings)
  2. Shows the updated rich presence (request through discord sdk)
  3. when presence is cleared through sdk, falls back to default rich presence till application is closed.
msciotti commented 6 years ago

I believe this is a bug on our end that is tied to multi-activity stuff that we released. Basically, your client is seeing both the default game detection and the rich presence game detection and is not properly de-duping the two.

This is known, and we will fix it. Sorry for the confusion.

anupbelambe commented 6 years ago

Thanks msciotti for confirmation. This helps. Just want to call out that these rich presence update are from the same client so would expect the behavior to be as seen in comment https://github.com/discordapp/discord-rpc/issues/235#issuecomment-426901222