Fix build
This commit is contained in:
parent
f9c6f48ef7
commit
bdb42f9699
|
@ -22,7 +22,7 @@ type Client struct {
|
||||||
greetedRooms []id.RoomID
|
greetedRooms []id.RoomID
|
||||||
olmMachine *crypto.OlmMachine
|
olmMachine *crypto.OlmMachine
|
||||||
store *sqlStore
|
store *sqlStore
|
||||||
syncer mautrix.Syncer
|
syncer *mautrix.DefaultSyncer
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewClient(config *config.MatrixConfig, db *sql.DB) (*Client, error) {
|
func NewClient(config *config.MatrixConfig, db *sql.DB) (*Client, error) {
|
||||||
|
@ -63,7 +63,7 @@ func (c *Client) Login() error {
|
||||||
|
|
||||||
deviceID := c.loadDeviceID(userID)
|
deviceID := c.loadDeviceID(userID)
|
||||||
|
|
||||||
_, err := c.client.Login(&mautrix.ReqLogin{
|
_, err = c.client.Login(&mautrix.ReqLogin{
|
||||||
Type: mautrix.AuthTypePassword,
|
Type: mautrix.AuthTypePassword,
|
||||||
Identifier: mautrix.UserIdentifier{
|
Identifier: mautrix.UserIdentifier{
|
||||||
Type: mautrix.IdentifierTypeUser,
|
Type: mautrix.IdentifierTypeUser,
|
||||||
|
@ -183,6 +183,8 @@ func (c *Client) Broadcast(message *event.MessageEventContent) (success bool) {
|
||||||
success = true
|
success = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return success
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) handleMemberEvent(source mautrix.EventSource, evt *event.Event) {
|
func (c *Client) handleMemberEvent(source mautrix.EventSource, evt *event.Event) {
|
||||||
|
|
Loading…
Reference in New Issue