finos / spring-bot

Spring Boot + Java Integration for Symphony/Teams Chat Platform Bots and Apps
https://springbot.finos.org
Apache License 2.0
60 stars 35 forks source link

ChatButton action is visible in all rooms even if restricted with "rooms" attribute of @ChatButton #235

Closed pankaj-a-khandelwal-db closed 2 years ago

pankaj-a-khandelwal-db commented 3 years ago

Bug Report

Steps to Reproduce:

  1. This is from Expense Workflow example from Spring Bot - Getting Started page
  2. Annotate controller method to map ChatButton action
    @ChatButton(value = OpenedClaim.class, buttonText = "Approve", rooms = {"Claim Approval Room PK"})
    public List<Response> approveClaim(User approver, Addressable fromStream, OpenedClaim claim) {
    1. As part of some previous action in workflow return WorkResponse containing @Work OpenedClaim form to different Rooms/Users
    2. Observe rooms where you sent above response including "Claim Approval Room PK" and even individual user chat

Expected Result:

Actual Result:

Environment:

Version 8.0.1+

Additional Context:

As seen in expected Claims Approval room

image

As seen in other rooms

image

As seen in User chat

image