Skip to content

Invite links uses count even if the user is already in the room. #16573

@gabriellsh

Description

@gabriellsh

Description:

Users can open invite links multiple times, even if they joined the room already. This should not happen, as invite links can have limited uses.

Steps to reproduce:

  1. Go to any room.
  2. Click on the users icon then invite users.
  3. Copy the link and access it multiple times on the same account.
  4. Go to Admin->Invites: Check your invite link, it should have counted every time you entered the room through it.

Expected behavior:

Count only new users to the room.

Actual behavior:

It counts every single attempt.

Server Setup Information:

  • Version of Rocket.Chat Server: 3.0.0-develop
  • Operating System: macOS Catalina 10.15.2
  • Deployment Method: Development
  • Number of Running Instances: 1
  • DB Replicaset Oplog: True
  • NodeJS Version: 13.5.0
  • MongoDB Version: 4.0.6

Client Setup Information

  • Desktop App or Browser Version: Chrome Version 80.0.3987.87 (Official Build) (64-bit)
  • Operating System: macOS Catalina 10.15.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions