-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Fixed WebUI crash when a status opened in the media modal is deleted #15701
Conversation
Thank you for the contribution! I took the liberty of changing the PR title to reflect that it's not a compatibility error but just a crash. Your change seem to fix the crash itself, but it would result in the pop-out player still being displayed, although without the status bar. A better approach would probably be to close the pop-out player as soon as the status is deleted. This could be handled by changing |
Thank you. You're right. I will consider how to close the pop-out player, but should this PR be closed once? Since this was my first PR, I don't know what to do in such a case. If you do not mind, please teach me. |
You can push additional commits in the PR. I'd start by reverting the latest commit ( This will result in a slightly noisy commit history, but that isn't really an issue. If you still want to clean that commit history later on, you can use |
I reconfirmed where the crash occurred. |
…atus is deleted" This reverts commit f003b7d.
Ah yes, there is indeed a similar crash in the media modal. I'd say it's a similar issue but not exactly the same. I don't have a preference with regards to fixing both issues in the same PR or different ones, do what's easiest for you. |
Looks good to me, thanks! |
…astodon#15701) * Fixed picture in picture compatibility error in WebUI when status is deleted * Revert "Fixed picture in picture compatibility error in WebUI when status is deleted" This reverts commit f003b7d. * Close the modal display of the image when status is deleted * Fixed the case statement before the default statement * Removed unnecessary parts
Fixed a problem that a compatibility error occurs when the status is deleted while the status image etc. is selected and displayed.