Fix function get_last_messages
Small minichat cleaning