| @@ -292,9 +292,9 @@ | ||
| 292 | 292 | 'id' => (int) $post->ID, |
| 293 | 293 | 'agentId' => $agent_id, |
| 294 | 294 | 'agentName' => $agent ? $agent->display_name : __( 'Deleted agent', 'desktop-mode' ), |
| 295 | 295 | 'agentDescription' => $agent ? (string) get_user_meta( $agent_id, '_desktop_mode_agent_description', true ) : '', |
| 296 | - 'agentAvatarUrl' => function_exists( 'openstation_agent_avatar_url' ) ? openstation_agent_avatar_url() : '', | |
| 296 | + 'agentAvatarUrl' => function_exists( 'openstation_agent_avatar_url' ) ? openstation_agent_avatar_url( $agent_id ) : '', | |
| 297 | 297 | 'title' => (string) $post->post_title, |
| 298 | 298 | // Second sidebar line + who spoke last, so the list can say |
| 299 | 299 | // where each conversation got to instead of repeating its opener. |
| 300 | 300 | 'preview' => openstation_agent_conversation_preview( $messages ), |