[Feature] Per-user setting to hide activity (now playing), including streaming sessions

Open
#5,829 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
fastapi, python
Domain
api, backend

Research direction

Start by reading handler/streaming/lifecycle.py and trace how sessions enter GET /api/activity and how activity:update events are sent. Find where per-user settings are defined and applied, then follow the same path for both client and server-published activity. Done means the setting defaults to on, hides the user's activity from the API and other users' events when off, and leaves admin and joinable session views unchanged.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
Activity ("now playing") is published for every play session, and for streaming sessions the server publishes it itself (handler/streaming/lifecycle.py, device type streaming). A user has no way to play without everyone else on the server seeing what they are playing. A client can choose not to send its own activity heartbeats, but it cannot hide a streamed game.

Describe the solution you'd like
A per-user setting, something like "Show what I'm playing to other users" (default on, to keep today's behaviour). When it is off, the user's sessions are left out of GET /api/activity and of the activity:update events sent to other users, including server-published streaming activity. Admin views (GET /api/streaming/sessions) would stay as they are.

Describe alternatives you've considered
Filtering on the client only hides the row in that one client; the data is still sent to every other client and shown on the web UI.

Additional context
A session the host explicitly opened to others (multiplayer) would reasonably stay visible in GET /api/streaming/sessions/joinable, since opening it is itself the choice to be seen.

Dominant language
Python
Stars
13.3k
Forks
747
Avg merge
20h 58m
Merged PRs (30d)
207

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rommapp/romm

All issues in rommapp/romm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.