name changes in chat [INCOMPLETE]

I'm stuck here. Can't find a way to get old name of peer in the chat. Probably need to store it somehwere, right?