From 99163b3338940dd9904630007868ca01faf4190c Mon Sep 17 00:00:00 2001 From: Mohammed S Date: Thu, 28 Sep 2023 23:24:16 +0530 Subject: [PATCH] fix: error fixed --- packages/restapi/src/lib/pushapi/chat.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/restapi/src/lib/pushapi/chat.ts b/packages/restapi/src/lib/pushapi/chat.ts index 7eaccda38..193db597a 100644 --- a/packages/restapi/src/lib/pushapi/chat.ts +++ b/packages/restapi/src/lib/pushapi/chat.ts @@ -25,9 +25,9 @@ import { ChatUpdateGroupProfileType, updateGroupProfile, } from '../chat/updateGroupProfile'; -import { UserInfo } from './user'; +import { User } from './user'; export class Chat { - private userInfoInstance: UserInfo; + private userInstance: User; constructor( private account: string, @@ -35,8 +35,9 @@ export class Chat { private env: ENV, private signer: SignerType, private progressHook?: (progress: ProgressHookType) => void - ) { this.userInfoInstance = new UserInfo(this.account, this.env); -} + ) { + this.userInstance = new User(this.account, this.env); + } async list( type: `${ChatListType}`, @@ -134,7 +135,7 @@ export class Chat { pgpPrivateKey: this.decryptedPgpPvtKey, env: this.env, messages: messagePayloads, - connectedUser: await this.userInfoInstance.info(), + connectedUser: await this.userInstance.info(), }); }