From fda11ae996b475ba1b44fd98ab518f265ed352ed Mon Sep 17 00:00:00 2001 From: Catalan Lover <48515417+FSG-Cat@users.noreply.github.com> Date: Fri, 11 Aug 2023 20:02:33 +0200 Subject: [PATCH] Add Empty Key to disable override section --- proposals/4043-presence-override-api.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proposals/4043-presence-override-api.md b/proposals/4043-presence-override-api.md index 585a77dfa0..10599026ef 100644 --- a/proposals/4043-presence-override-api.md +++ b/proposals/4043-presence-override-api.md @@ -38,6 +38,14 @@ And you will get back a response that is like the example below if your override } ``` +And to disable override you send a payload with a empty `presence_override` key like the example below. + +```json +{ + "presence_override": "" +} +``` + As for error codes this is currently WIP but it follows a similar pattern to the current `/_matrix/client/v3/presence/{userId}/status` endpoint. With minor reasonable adaptations like how presence is replaced with presence override where sensible.