From 392e52231cfffa04c2b85dd2d73e707734d904a9 Mon Sep 17 00:00:00 2001 From: Stephan Reinwald Date: Tue, 25 Nov 2025 13:25:56 +0100 Subject: [PATCH] fix(matrix): store credentials after mautrix login Add StoreCredentials flag to persist access token after authentication. Fixes M_MISSING_TOKEN errors on subsequent API calls. --- internal/notif/matrix/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/notif/matrix/client.go b/internal/notif/matrix/client.go index cb89b28c..5f973363 100644 --- a/internal/notif/matrix/client.go +++ b/internal/notif/matrix/client.go @@ -66,6 +66,7 @@ func (c *Client) Send(entry model.NotifEntry) error { }, Password: password, InitialDeviceDisplayName: c.meta.Name, + StoreCredentials: true, }) if err != nil { return errors.Wrap(err, "failed to authenticate Matrix user")