Skip to content

Commit

Permalink
fix: error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Sep 28, 2023
1 parent 09524c7 commit 99163b3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/restapi/src/lib/pushapi/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@ 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,
private decryptedPgpPvtKey: string,
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}`,
Expand Down Expand Up @@ -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(),
});
}

Expand Down

0 comments on commit 99163b3

Please sign in to comment.