Clear media when switching view modes

This commit is contained in:
Lim Chee Aun 2023-04-19 00:27:10 +08:00
parent 51fc60cf5d
commit 61699b322d

View file

@ -695,6 +695,8 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
className="menu-switch-view"
onClick={() => {
setViewMode(viewMode === 'full' ? null : 'full');
searchParams.delete('media');
searchParams.delete('media-only');
if (viewMode === 'full') {
searchParams.delete('view');
} else {