Skip to content

Get room inbox notifications #2059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

FlowFlorent
Copy link
Contributor

@FlowFlorent FlowFlorent commented Nov 12, 2024

Description

This PR introduces two hooks that are available inside our RoomProvider

  • useRoomInboxNotifications
  • useRoomUnreadInboxNotifications ( coming soon ™)

and their associated client methods:

  • room.getRoomInboxNotifications
  • room.getRoomUnreadInboxNotifications

They exhibit the same behaviour as the project level methods, just filtered to a room

Still todo:

  • Look into reacting to some websocket events
  • Tests

return {
isLoading: false,
// FIXME: The filtering part doesn't look right, should I created a notificationsDB like threadsDB?
inboxNotifications: this.getFullState().cleanedNotifications.filter(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The filtering part doesn't look right, should I create a notificationsDB like threadsDB?

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