Merge remote-tracking branch 'origin/develop' into fix-self-reply

This commit is contained in:
Alex Gleason
2022-02-23 12:03:04 -05:00
4 changed files with 170 additions and 64 deletions

View File

@@ -161,7 +161,7 @@ class ModalRoot extends React.PureComponent {
if (this.unlistenHistory) {
this.unlistenHistory();
}
if (!['FAVOURITES', 'MENTIONS', 'REACTIONS', 'REBLOGS'].includes(type)) {
if (!['FAVOURITES', 'MENTIONS', 'REACTIONS', 'REBLOGS', 'MEDIA'].includes(type)) {
const { state } = this.history.location;
if (state && state.soapboxModalKey === this._modalHistoryKey) {
this.history.goBack();