Replace user ids with names in history messages