When not showing whitespace changes, renamed files are not properly identified in MR Diffs

Summary

When the option "Show whitespace changes" is disabled, any renamed files are not highlighted in the MR diffs file headers.

Steps to reproduce

  1. Prepare a MR with a renamed file
  2. Open the MR
  3. Ensure setting "Show whitespace changes" is disabled
  4. Scroll to renamed file and check it's displayed as a normal file (non-renamed)

Example Project

!64289 (diffs)

What is the current bug behavior?

Screenshot_2021-06-22_at_14.58.21

What is the expected correct behavior?

Screenshot_2021-06-22_at_14.57.43

Possible fixes

If we treat Diffs the same way regardless of this preference value, this and other bugs will go away.