mirror of
https://github.com/ILoveBingLu/CipherTalk.git
synced 2026-05-21 03:50:35 +08:00
fix: update mac packaging and icon handling
This commit is contained in:
@@ -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}`)
|
||||
)
|
||||
|
||||
|
||||
Vendored
+12
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user