Make messageListScrollHandler less repetitive and more readable

Change-Id: I824b88ce53266e82a293af33bc502624c30850b3
Merge "Make messageListScrollHandler less repetitive and more readable"