| @@ -96,9 +96,9 @@ | ||
| 96 | 96 | 'title' => __( 'Agent chat', 'desktop-mode' ), |
| 97 | 97 | 'icon' => openstation_agent_run_window_icon(), |
| 98 | 98 | 'template' => 'openstation_agent_run_render_template', |
| 99 | 99 | 'script' => 'desktop-mode-agent-run', |
| 100 | - 'style' => 'desktop-mode-agent-run', | |
| 100 | + 'styles' => array( 'desktop-mode-agent-run' ), | |
| 101 | 101 | 'width' => 760, |
| 102 | 102 | 'height' => 620, |
| 103 | 103 | 'min_width' => 540, |
| 104 | 104 | 'min_height' => 380, |
| @@ -113,9 +113,9 @@ | ||
| 113 | 113 | // The viewer — the chat paints their avatar next to |
| 114 | 114 | // their own messages, WhatsApp-style. |
| 115 | 115 | 'currentUser' => array( |
| 116 | 116 | 'id' => (int) get_current_user_id(), |
| 117 | - 'name' => (string) wp_get_current_user()->display_name, | |
| 117 | + 'name' => openstation_plain_text_title( wp_get_current_user()->display_name ), | |
| 118 | 118 | 'avatarUrl' => (string) get_avatar_url( get_current_user_id(), array( 'size' => 96 ) ), |
| 119 | 119 | ), |
| 120 | 120 | ), |
| 121 | 121 | ) |