Per-User Role Limits for Messages & Friends

I would like to request a feature that allows administrators to set limits on the number of messages a user can send per day and the maximum number of friends they can have, based on their assigned role. These limits should be configurable within the CometChat dashboard under:

Dashboard → Manage → User Roles → Permissions

Proposed Functionality:

  1. Daily Message Limit per Role:

    • Add an input field to set the maximum number of messages a user in a specific role can send per day.

    • Once the limit is reached, prevent further messages from being sent until the next day.

    • Optionally, display a warning or notification when users approach their limit.

  2. Maximum Friends Limit per Role:

    • Add an input field to define the maximum number of friends a user with a specific role can have.

    • Once the limit is reached, the user cannot send or accept new friend requests unless they remove existing friends.

Use Case:
This feature would allow platform owners to monetize user roles by offering premium tiers with higher message and friend limits. By restricting these features for free users, admins can incentivize upgrades to paid memberships.

Temporary Alternative:
In the meantime, I would settle for an efficient way to track how many messages a user has sent since the start of the day (resetting at midnight, not a rolling 24-hour window). This would allow me to implement a custom rate-limiting solution before this feature is fully developed.

Please authenticate to join the conversation.

Upvoters
Status

Idea

Board

💡 Feature Request

Tags

Dashboard

Subscribe to post

Get notified by email when there are changes.