Skip to content
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

Don't close main player when editing comments #5606

Merged
merged 1 commit into from
Mar 8, 2021
Merged

Conversation

infinite-persistence
Copy link
Contributor

@infinite-persistence infinite-persistence commented Mar 2, 2021

Issue

image
https://discord.com/channels/362322208485277697/363087331475062785/815132676293918730

Related

#5384: Editing a comment that has an embed in the playing state, doesn't hide the player

Changes

  • Renamed closeInlinePlayer to clearPlayingUri to reflect it's actual function.
  • Add additional check to see if the current video is actually inline before closing it.

Wanted to create an actual closeInlinePlayer, but let's wait until there are more usages.

Note

  • I've tested the "main player" case (don't stop the video), but I couldn't test the "inline player" case (should close the video) as I couldn't create a comment today. Kept receiving failure. Never mind. The Comments Server is working again and I was able to test out both cases.

@neb-b neb-b self-requested a review March 3, 2021 20:33
Copy link

@neb-b neb-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Will merge after this is rebased

https://discord.com/channels/362322208485277697/363087331475062785/815132676293918730

- Renamed `closeInlinePlayer` to `clearPlayingUri` to reflect it's actual function.
- Add additional check to see if the current video is actually inline before closing it.

Wanted to refactor out an actual `closeInlinePlayer`, but let's wait until there are more usages.
@infinite-persistence
Copy link
Contributor Author

infinite-persistence commented Mar 4, 2021

Changes

  • Rebased to master

@neb-b neb-b merged commit e361289 into master Mar 8, 2021
@neb-b neb-b deleted the ip-close-inline branch March 8, 2021 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants