Skip to content

feat: debounced presence transition broadcasts (#218)#264

Open
Delightech28 wants to merge 3 commits into
codebestia:mainfrom
Delightech28:feature/presence-debounce
Open

feat: debounced presence transition broadcasts (#218)#264
Delightech28 wants to merge 3 commits into
codebestia:mainfrom
Delightech28:feature/presence-debounce

Conversation

@Delightech28

Copy link
Copy Markdown

Description

Resolves #218 by implementing debounced presence transition broadcasts (online/offline).

Key changes:

  • Modified the backend presence service to detect aggregate connection changes, avoiding rapid flap events when a user briefly disconnects.
  • Debounced offline broadcasts by deferring them for 3 seconds. If the user reconnects within the window, the offline broadcast is canceled.
  • Updated the presence_update WebSocket payload to include { userId, status, lastSeen } to provide more accurate state tracking to peers.
  • Updated the frontend ConversationListSidebar component to gracefully handle the new status payload in addition to the legacy boolean structure.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Other

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally
  • My code follows the project's coding standards

closes #218

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@Delightech28 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@codebestia

Copy link
Copy Markdown
Owner

@Delightech28 Please fix the CI

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.

Presence transition broadcasts (online/offline)

2 participants