-
Notifications
You must be signed in to change notification settings - Fork 838
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
Ephemeral messages with inputs don't disappear #1629
Comments
Hi @fmPeretti, thanks for asking the question! In general, ephemeral mesasges can stay remained even when you reload the Slack UI. It will eventually disappear, but there is no specific amount of time until its removal. If you want to manage when to delete an ephemeral mesage upon user interactions, one solution is to post the ephemeral message using bolt-python's Please note that there is no way to delete the message when you post the message using chat.postEphemeral API. Also,
If you didn't intend to ask how to handle interactions with an ephemeral message, please feel free to ignore the above suggestion. I hope this was helpful to you. |
HI @seratch thanks for answering my question, from what i could understand from the slack documentation that ephemeral messaged lasted aslong as the user session. The case is that for me, the ephemeral messages that have input fields in it NEVER dissapear while the others, that has been sent at the same time, do Dissapear. Also I understand the workarrounds you propose, but im using this to drive some workflow where the user inputs some data, to a form like message thats ephemeral. I would want that inputs to dissapear over time and i do not want to persist anything about the process which would allow me to delete the message manually later. |
*For some reason those have disappeared now! Im not quite sure to understand why. Might be worth to add a little asterik to the documentation on What is considered a "reload" or a "session". Thank you for your help! 😄 |
When sending a form like message with inputs as ephemeral, It doesnt dissapear in between sessions as the other messages.
It just deletes the content of the inputs.
Notice that it is an ephemeral message given that it is tag as Only for you, and is not visible by anyone else
Reproducible in:
python 3.10.6
Slack APP
Steps to reproduce:
Expected result:
The Message with the form will dissapear
Actual result:
The form message is still there, and it has only deleted the content of the inputs.
Picture Example
This is a day old message after I shutdown my computer and Force reload slack
The text was updated successfully, but these errors were encountered: