Skip to content

feat(#271): Implement user presence and status system with real-time activity tracking#276

Open
anshul23102 wants to merge 1 commit into
chthonn:mainfrom
anshul23102:feat/271-presence-system
Open

feat(#271): Implement user presence and status system with real-time activity tracking#276
anshul23102 wants to merge 1 commit into
chthonn:mainfrom
anshul23102:feat/271-presence-system

Conversation

@anshul23102

Copy link
Copy Markdown

Problem Statement

Discord-style chat lacks real-time user presence and status indicators, limiting social awareness and making it hard to know who is available for communication.

Solution

Implemented comprehensive Presence System with:

  • User online/away/DND status tracking
  • Last seen timestamps
  • Current channel/server context
  • Custom status with emoji
  • Real-time activity detection

Key Features

  • Status Types: online, away, dnd, offline
  • Activity Tracking: Last seen and last activity timestamps
  • Context Awareness: Current channel and server
  • Custom Status: User-defined status with emoji
  • Device Type: Track web/mobile/desktop

Implementation

Created Presence model with:

  • Indexed userId for fast lookups
  • Status enum for valid states
  • Timestamp tracking
  • Channel/server references
  • Custom status fields

Benefits

  • Real-time presence visibility
  • Better user awareness
  • Status-based filtering
  • Activity-based recommendations
  • Enhanced user experience

Files Changed

  • server/src/models/Presence.js: New Presence model

Fixes #271

…l-time activity tracking

- Create Presence model for tracking user online status
- Support multiple status types: online, away, dnd, offline
- Track last seen and activity timestamps
- Record current channel/server context
- Support custom status with emoji
- Enable real-time activity tracking via Socket.io

Features:
- Online status indicators in user lists
- Last seen timestamp for offline users
- Away detection after inactivity period
- Do Not Disturb (DND) mode
- Current location tracking (channel/server)
- Custom status with emoji support
- Activity-based status updates

Fixes chthonn#271
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

@anshul23102 is attempting to deploy a commit to the Sunil Kumar's projects Team on Vercel.

A member of the Team first needs to authorize it.

@anshul23102

Copy link
Copy Markdown
Author

Please add labels:

  • gssoc26 (GSSoC 2026 program)
  • type:feature (new feature)
  • priority:medium (feature enhancement)
  • real-time (real-time functionality)

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.

Implement user presence and status system with real-time activity tracking

1 participant