| 1205 | .map(([key, _]) => key); | 1205 | .map(([key, _]) => key); |
| 1206 | | 1206 | |
| 1207 | if (connectedPersonas.length > 0) { | 1207 | if (connectedPersonas.length > 0) { |
| 1208 | if (!power_user.persona_allow_multi_connections || connectedPersonas.length === 1) { | 1208 | if (connectedPersonas.length === 1) { |
| | 1209 | chatPersona = connectedPersonas[0]; |
| | 1210 | } else if (!power_user.persona_allow_multi_connections) { |
| 1209 | chatPersona = connectedPersonas[0]; | 1211 | chatPersona = connectedPersonas[0]; |
| 1210 | toastr.warning(t`More than one persona is connected to this character. Using the first available persona for this chat.`, t`Automatic Persona Selection`); | 1212 | toastr.warning(t`More than one persona is connected to this character. Using the first available persona for this chat.`, t`Automatic Persona Selection`); |
| 1211 | } else { | 1213 | } else { |