[server] Move condition to unset TRUNCATED to where TRUNCATED is set
Summary: Instead of setting it in one place, and then conditionally unsetting it later... we should probably just check the condition in the first place.
Test Plan:
- I tested different values of defaultMaxMessageAge such that some threads would return fewer than defaultNumberPerThread, and some threads would return 0
- I tested threads that needed a fetchMostRecentMessages, and threads that needed multiple fetchMessagesBeforeCursor to get to the start
- I made sure all threads loaded all the way to the start of a thread if I kept scrolling
Reviewers: palys-swm, atul
Reviewed By: palys-swm
Subscribers: Adrian, karol-bisztyga, benschac
Differential Revision: https://phabricator.ashoat.com/D3412