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.
This commit is contained in:
Stephan Reinwald
2025-11-25 13:25:56 +01:00
parent cfc7fdb6b8
commit 392e52231c

View File

@@ -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")