Fix build
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Luca 2022-07-27 18:07:06 +02:00
parent f9c6f48ef7
commit bdb42f9699
1 changed files with 4 additions and 2 deletions

View File

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