final line of function should be:
{:noreply, {state | emails: emails}}
Thanks for reporting this error Martin! I’ll fix this for the next beta version