Loop through last messages before handling height changes
Loop through last messages before handling height changes

Looping through the last messages on arrow up/down may change the height
of the new message field (as the last messages may contain different
numbers of lines), so this needs to be done before handling height
changes in the new message field for the chat view to be properly
scrolled.

Signed-off-by: Daniel Calviño Sánchez <bd7629e975cc0e00ea7cda4ab6a120f2ee42ac1b@gmail.com>

nextcloud/spreed,nextcloud/spreed,nextcloud/spreed