Namespace electronExtension
Functions
getAllConversationList
Parameters
Optional channelId: string
getConversationList
Parameters
startTime: number
count: number
Optional channelId: string
Optional topPriority: boolean
searchConversationByContent
Parameters
keyword: string
messageTypes: string[]
Optional channelId: string
getConversations
Parameters
searchMessages
Parameters
keyword: string
startTime: number
count: number
Optional messageTypes: string[]
Returns Promise<IAsyncRes<{ messages: IAReceivedMessage[]; count: number | undefined }>>
searchMessageInTimeRange
Parameters
searchMessagesByUser
Parameters
userId: string
startTime: number
count: number
getHistoryMessagesByMessageTypes
Parameters
getContinuousMessages
Parameters
Returns Promise<IAsyncRes<{ list: IAReceivedMessage[]; timestamp: number; hasMore: boolean }>>
setMessageStatusToRead
Parameters
Returns Promise<IAsyncRes<boolean>>
setMessageReceivedStatus
Parameters
Returns Promise<IAsyncRes<void>>
setMessageReceivedStatusInfo
Parameters
Returns Promise<IAsyncRes<void>>
setMessageSentStatus
Parameters
Returns Promise<IAsyncRes<void>>
setMessageContent
- setMessageContent(messageId: number, content: Object, messageType?: string): Promise<IAsyncRes<void>>
Parameters
messageId: number
content: Object
messageType: string = ''
Returns Promise<IAsyncRes<void>>
deleteMessages
- deleteMessages(messageIds: number[]): Promise<IAsyncRes<void>>
Parameters
Returns Promise<IAsyncRes<void>>
clearMessages
Parameters
Returns Promise<IAsyncRes<void>>
deleteMessagesByTimestamp
Parameters
timestamp: number
cleanSpace: boolean
Returns Promise<IAsyncRes<void>>
batchClearMessagesByTimestamp
Parameters
Returns Promise<IAsyncRes<void>>
insertMessage
Parameters
batchInsertMessage
Parameters
Returns Promise<IAsyncRes<boolean>>
getMessageCount
Parameters
Returns Promise<IAsyncRes<number>>
getPrivateMessageDeliverTime
- getPrivateMessageDeliverTime(messageUId: string): Promise<IAsyncRes<number>>
Parameters
Returns Promise<IAsyncRes<number>>
getGroupMessageDeliverList
Parameters
targetId: string
messageUId: string
setCheckDuplicateMessage
- setCheckDuplicateMessage(checkDuplicate?: boolean): Promise<IAsyncRes<boolean>>
Parameters
Optional checkDuplicate: boolean
Returns Promise<IAsyncRes<boolean>>
setCheckChatRoomDuplicateMessage
- setCheckChatRoomDuplicateMessage(checkDuplicate?: boolean): Promise<IAsyncRes<boolean>>
Parameters
Optional checkDuplicate: boolean
Returns Promise<IAsyncRes<boolean>>
getMessagesAroundTimestamp
Parameters
option: { timestamp: number; beforeCount: number; afterCount: number }
timestamp: number
beforeCount: number
afterCount: number
getLocalMessage
Parameters
messageId: string | number
clearLocalData
- clearLocalData(): Promise<IAsyncRes<boolean>>
Returns Promise<IAsyncRes<boolean>>
enable
Returns boolean