Skip to content

feat: add per-instance media download settings#337

Closed
vitorsilvalima wants to merge 2 commits into
asternic:mainfrom
black-atom:feat/implement-skip-media-per-instance
Closed

feat: add per-instance media download settings#337
vitorsilvalima wants to merge 2 commits into
asternic:mainfrom
black-atom:feat/implement-skip-media-per-instance

Conversation

@vitorsilvalima

Copy link
Copy Markdown
Contributor

Introduces two new endpoints for managing media download behavior on a per-instance basis:

  • GET /session/skipmedia: Retrieves the current skip_media setting, indicating whether media should be automatically downloaded from incoming messages.
  • POST /session/skipmedia: Updates the skip_media setting to enable or disable automatic media downloads.

Additionally, the database schema is updated to include a skip_media column in the users table, and relevant changes are made to the API documentation and frontend to support this feature. The global -skipmedia flag remains intact, allowing for combined control over media download behavior.

Introduces two new endpoints for managing media download behavior on a per-instance basis:
- **GET /session/skipmedia**: Retrieves the current `skip_media` setting, indicating whether media should be automatically downloaded from incoming messages.
- **POST /session/skipmedia**: Updates the `skip_media` setting to enable or disable automatic media downloads.

Additionally, the database schema is updated to include a `skip_media` column in the users table, and relevant changes are made to the API documentation and frontend to support this feature. The global `-skipmedia` flag remains intact, allowing for combined control over media download behavior.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a per-instance skip_media setting to control automatic media downloads for incoming messages, adding new API endpoints, database migrations, and UI components. Feedback is provided regarding a database query in wmiau.go where integer comparisons and defaults are used on boolean columns, which will cause type mismatch errors in PostgreSQL.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread wmiau.go Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@vitorsilvalima
vitorsilvalima deleted the feat/implement-skip-media-per-instance branch July 1, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant