package libgm import ( "go.mau.fi/mautrix-gmessages/libgm/gmproto" ) func (c *Client) SetActiveSession() error { c.sessionHandler.ResetSessionID() return c.sessionHandler.sendMessageNoResponse(SendMessageParams{ Action: gmproto.ActionType_GET_UPDATES, OmitTTL: true, UseSessionID: true, }) } func (c *Client) IsBugleDefault() (*gmproto.IsBugleDefaultResponse, error) { c.sessionHandler.ResetSessionID() actionType := gmproto.ActionType_IS_BUGLE_DEFAULT return typedResponse[*gmproto.IsBugleDefaultResponse](c.sessionHandler.sendMessage(actionType, nil)) } func (c *Client) NotifyDittoActivity() error { payload := &gmproto.NotifyDittoActivityRequest{Success: true} actionType := gmproto.ActionType_NOTIFY_DITTO_ACTIVITY _, err := c.sessionHandler.sendMessage(actionType, payload) return err }