feat: 不再限制只导入翁爷的聊天记录了

This commit is contained in:
liuliu 2025-12-17 11:54:38 +08:00
parent 1bf7945090
commit e5c643fd18
2 changed files with 3 additions and 3 deletions

View File

@ -129,8 +129,8 @@ export function importChatData(data: any) {
const transaction = db.transaction((msgs: any[]) => {
for (const msg of msgs) {
// Filter: Only import if sender is 'pincman' AND content contains '@所有人'
const isPincman = msg.senderDisplayName === 'pincman' || msg.senderUsername === 'pincman';
const hasAtAll = msg.content && msg.content.includes('@所有人');
const isPincman = true;
const hasAtAll = true;
if (!isPincman || !hasAtAll) {
continue;

View File

@ -58,7 +58,7 @@ export function SummaryModal({ conversationId, onClose }: SummaryModalProps) {
return (
<div className="fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4">
<div className="bg-white rounded-lg shadow-xl w-full max-w-md flex flex-col max-h-[85vh]">
<div className="bg-white rounded-lg shadow-xl w-full max-w-2xl flex flex-col max-h-[85vh]">
{/* Header */}
<div className="flex items-center justify-between p-4 border-b shrink-0">
<h3 className="text-lg font-medium flex items-center gap-2">