Refactor convert to group chat to new popup

This commit is contained in:
Wolfsblvt
2024-06-27 01:01:43 +02:00
parent efb9fbcc7e
commit 1c6c9efba1
3 changed files with 15 additions and 7 deletions

View File

@ -24,6 +24,7 @@ import {
saveGroupBookmarkChat,
selected_group,
} from './group-chats.js';
import { Popup } from './popup.js';
import { createTagMapFromList } from './tags.js';
import {
@ -239,8 +240,7 @@ async function convertSoloToGroupChat() {
return;
}
const confirm = await callPopup('Are you sure you want to convert this chat to a group chat?', 'confirm');
const confirm = await Popup.show.confirm('Convert to group chat', 'Are you sure you want to convert this chat to a group chat?<br />This cannot be reverted.');
if (!confirm) {
return;
}