1
0
Fork 0
forked from Mirrors/gomuks

Initialize client in headless Matrix client

This commit is contained in:
FIGBERT 2023-08-08 16:24:30 -07:00
parent b1c940a0a8
commit 5db39fd50a
No known key found for this signature in database
GPG key ID: 67F1598D607A844B

View file

@ -39,7 +39,9 @@ func HeadlessInit(conf HeadlessConfig) error {
}
// login section
if err = gmx.Matrix().Login(conf.MxID, conf.MxPassword); err != nil {
if err := gmx.Matrix().InitClient(false); err != nil {
return err
} else if err = gmx.Matrix().Login(conf.MxID, conf.MxPassword); err != nil {
return err
}