feat: 不再限制只导入翁爷的聊天记录了
This commit is contained in:
parent
1bf7945090
commit
e5c643fd18
@ -129,8 +129,8 @@ export function importChatData(data: any) {
|
|||||||
const transaction = db.transaction((msgs: any[]) => {
|
const transaction = db.transaction((msgs: any[]) => {
|
||||||
for (const msg of msgs) {
|
for (const msg of msgs) {
|
||||||
// Filter: Only import if sender is 'pincman' AND content contains '@所有人'
|
// Filter: Only import if sender is 'pincman' AND content contains '@所有人'
|
||||||
const isPincman = msg.senderDisplayName === 'pincman' || msg.senderUsername === 'pincman';
|
const isPincman = true;
|
||||||
const hasAtAll = msg.content && msg.content.includes('@所有人');
|
const hasAtAll = true;
|
||||||
|
|
||||||
if (!isPincman || !hasAtAll) {
|
if (!isPincman || !hasAtAll) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@ -58,7 +58,7 @@ export function SummaryModal({ conversationId, onClose }: SummaryModalProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4">
|
<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 */}
|
{/* Header */}
|
||||||
<div className="flex items-center justify-between p-4 border-b shrink-0">
|
<div className="flex items-center justify-between p-4 border-b shrink-0">
|
||||||
<h3 className="text-lg font-medium flex items-center gap-2">
|
<h3 className="text-lg font-medium flex items-center gap-2">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user