fix: update mac packaging and icon handling

This commit is contained in:
ILoveBinglu
2026-04-06 22:58:52 +08:00
parent d4db5fd715
commit 7fc73c973b
8 changed files with 186 additions and 22 deletions
+1 -1
View File
@@ -735,7 +735,7 @@ function ChatPage(_props: ChatPageProps) {
const existingKeys = new Set(
messagesRef.current.map(m => `${m.serverId}-${m.localId}-${m.createTime}-${m.sortSeq}`)
)
const uniqueNewerMessages = result.messages.filter(msg =>
const uniqueNewerMessages = result.messages.filter((msg: Message) =>
!existingKeys.has(`${msg.serverId}-${msg.localId}-${msg.createTime}-${msg.sortSeq}`)
)
+12
View File
@@ -468,6 +468,18 @@ export interface ElectronAPI {
hasMore?: boolean;
error?: string
}>
getMessagesAfter: (
sessionId: string,
cursorSortSeq: number,
limit?: number,
cursorCreateTime?: number,
cursorLocalId?: number
) => Promise<{
success: boolean;
messages?: Message[];
hasMore?: boolean;
error?: string
}>
getAllVoiceMessages: (sessionId: string) => Promise<{
success: boolean;
messages?: Message[];