bug修复
This commit is contained in:
@@ -17,7 +17,9 @@ import {
|
||||
V2NIMError,
|
||||
V2NIMKickedOfflineDetail,
|
||||
V2NIMLoginStatus,
|
||||
V2NIMMessageRevokeNotification
|
||||
V2NIMMessage,
|
||||
V2NIMMessageRevokeNotification,
|
||||
V2NIMP2PMessageMuteMode
|
||||
} from '@nimsdk/base';
|
||||
import { ContactRepo } from '../../../Index';
|
||||
import { KitLogger } from './logger/AppLogger';
|
||||
@@ -26,6 +28,9 @@ import { ChatRepo } from './repo/ChatRepo';
|
||||
import { saveLocalRevokeMessageFormOther } from './utils/MessageUtils';
|
||||
import { router } from '@kit.ArkUI';
|
||||
import { HMRouterMgr } from '@hadss/hmrouter';
|
||||
import { NotificationUtil } from '@itcast/basic';
|
||||
import { BusinessError } from '@kit.BasicServicesKit';
|
||||
import { NotificationBasicOptions } from '@itcast/basic/src/main/ets/pushnotification/NotificationOptions';
|
||||
|
||||
export const currentConversationChanged: string = 'CurrentConversationChanged'
|
||||
|
||||
@@ -185,6 +190,21 @@ export class ChatKitClient {
|
||||
ChatRepo.onRevokeMessage(ChatKitClient.onRevokeFun)
|
||||
ChatKitClient.hasInitListener = true
|
||||
|
||||
// ChatKitClient.nim.messageService?.on("onReceiveMessages", (messages: V2NIMMessage[]) => {
|
||||
// for (const message of messages) {
|
||||
// let basicOptions: NotificationBasicOptions = {
|
||||
// id: Number(message.messageServerId),
|
||||
// title: String(message['fromNick']),
|
||||
// text: String(message.text),
|
||||
// }
|
||||
// NotificationUtil.publishBasic(basicOptions).then((id) => {
|
||||
//
|
||||
// }).catch((err: BusinessError) => {
|
||||
// console.error('推送展示失败:', err)
|
||||
// });
|
||||
// }
|
||||
// })
|
||||
|
||||
}
|
||||
|
||||
private static onSyncFinishedFun = () => {
|
||||
|
||||
Reference in New Issue
Block a user