added num results and before to messagesByChannel so we don't just get all messages