No this is not the commit.
the related commit is most probably:
https://github.com/discourse/discourse/commit/a3345057f2a14b25cf8f436e248d17e78502a8ce
So before this commit, the logic was kinda duplicated and different, and was also causing an empty (but visible) timeline-controls widget.
Will have a look today.