add support for modifying the default notification pusher path

this is not officially in spec yet, but who cares? matrix team certainly doesn't care.

Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
girlbossceo 2023-10-28 22:31:11 -04:00
parent b8acacfb3e
commit 8b95399387
2 changed files with 12 additions and 1 deletions

View file

@ -52,7 +52,7 @@ impl Service {
where
T: Debug,
{
let destination = destination.replace("/_matrix/push/v1/notify", "");
let destination = destination.replace(services().globals.notification_push_path(), "");
let http_request = request
.try_into_http_request::<BytesMut>(