converted the objects in messages to body->user->id