Add missing fields in convert to group creation
| @@ -14,7 +14,9 @@ import { | ||
| 14 | 14 | } from '../script.js'; |
| 15 | 15 | import { humanizedDateTime } from './RossAscends-mods.js'; |
| 16 | 16 | import { |
| 17 | + DEFAULT_AUTO_MODE_DELAY, | |
| 17 | 18 | group_activation_strategy, |
| 19 | + group_generation_mode, | |
| 18 | 20 | groups, |
| 19 | 21 | openGroupById, |
| 20 | 22 | openGroupChat, |
| @@ -295,8 +297,6 @@ export async function convertSoloToGroupChat() { | ||
| 295 | 297 | const chatName = humanizedDateTime(); |
| 296 | 298 | const chats = [chatName]; |
| 297 | 299 | const members = [character.avatar]; |
| 298 | - const activationStrategy = group_activation_strategy.NATURAL; | |
| 299 | - const allowSelfResponses = false; | |
| 300 | 300 | const favChecked = character.fav || character.fav == 'true'; |
| 301 | 301 | /** @type {any} */ |
| 302 | 302 | const metadata = Object.assign({}, chat_metadata); |
| @@ -309,13 +309,16 @@ export async function convertSoloToGroupChat() { | ||
| 309 | 309 | name: name, |
| 310 | 310 | members: members, |
| 311 | 311 | avatar_url: avatar, |
| 312 | 312 | allow_self_responses: activationStrategyfalse, |
| 313 | 313 | activation_strategy: allowSelfResponsesgroup_activation_strategy.NATURAL, |
| 314 | 314 | disabled_members: [], |
| 315 | 315 | chat_metadata: metadata, |
| 316 | 316 | fav: favChecked, |
| 317 | 317 | chat_id: chatName, |
| 318 | 318 | chats: chats, |
| 319 | + hideMutedSprites: false, | |
| 320 | + generation_mode: group_generation_mode.SWAP, | |
| 321 | + auto_mode_delay: DEFAULT_AUTO_MODE_DELAY, | |
| 319 | 322 | }), |
| 320 | 323 | }); |
| 321 | 324 | |
| @@ -126,7 +126,7 @@ export const group_generation_mode = { | ||
| 126 | 126 | APPEND_DISABLED: 2, |
| 127 | 127 | }; |
| 128 | 128 | |
| 129 | 129 | export const DEFAULT_AUTO_MODE_DELAY = 5; |
| 130 | 130 | |
| 131 | 131 | export const groupCandidatesFilter = new FilterHelper(debounce(printGroupCandidates, debounce_timeout.quick)); |
| 132 | 132 | let autoModeWorker = null; |