mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
Initialize client in headless Matrix client
This commit is contained in:
parent
b1c940a0a8
commit
5db39fd50a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue