Revoking access to a channel you were previously pinged in causes 403 forbidden error for `GET /users/@me/mentions`

(#2428) Bug Fixed desktop notifications

Observed behaviour

Tries to fetch it but fails due to not having access anymore

Reproduction steps

  1. Be granted a role that gives you access to a channel
  2. Get pinged in that channel
  3. Get removed from that role
  4. Open Inbox > Mentions
  5. Notice it loading infinitely and 403 error in console
Note: You may need to refresh your client due to the mentions inbox tab not fetching every time it's opened

Build information

canary build 586 (96d2f9a), Electron 41.2.2, Windows 11 10.0.26200 (x64), desktop canary 0.0.122, locale en-GB canary build 586 (96d2f9a), Chrome 147.0.0.0, Windows NT 10.0 (x64), locale en-US

Platform

Windows

Details

Expected behaviour The client (or server) filters out old pings that you no longer have access to
Wz8LfyT1Rn.mp4 | 2.2 MB
  1. Rex changed the status from Needs triage to Fixed

2 comments

Sign in with Fluxer to comment and vote.
Comment by ternera
terneraMod 1 vote
Can reproduce CR - canary build 586 (96d2f9a), Electron 41.2.2, Windows 11 10.0.26200 (x64), desktop canary 0.0.122, locale en-US