Closed AayushChaudhary0001 closed 2 months ago
@AayushChaudhary0001 Currently, the settings are configured as ephemeral posts, which are removed upon refresh and are user-specific rather than server-wide. As the setting posts are ephemeral, the user can easily remember the last setting he has chosen. Given the nature of these settings, the effort required to implement this change may not justify the benefits. I would appreciate your thoughts on this.
One potential solution is to convert the settings post from an ephemeral message to a standard one and redirect the user to the Zoom bot's direct message channel, where the settings post can be delivered.
@Kshitij-Katiyar If changing the post from an ephemeral message to a standard post and redirecting the user to the Zoom bot's account is the solution, then I think there is no benefit of doing this. Since it would be a very lengthy task and a this issue is not a blocker, we can keep it as it is.
While testing this plugin, I found an issue regarding the settings slash command. If the user runs the settings slash command multiple times, multiple posts are presented to the user with all the options available. In this way, user can select different options in 2 different posts. So, the selection does not depend on the latest post in the channel but on the latest option selected by the user which can be of any previous post.
I am attaching screenshots for the same:-
Multiple posts:-
Actual value stored:-
In the screenshots above, it is clearly visible that in the last post, the user choose "No", but the value stored is "Yes", since the first post was the latest on which user took any action.
Possible solution:- You can delete the previous posts once the user runs the settings slash command. Note:- For more information, you can refer to mscalendar plugin.