Skip to content

Commit

Permalink
fix: error meta fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Apr 18, 2024
1 parent 09e59fd commit 5b7c30a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/pushapi/PushAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class PushAPI {
}
// Overloaded initialize method signatures
static async initialize(
signer?: SignerType,
signer?: SignerType | null,
options?: PushAPIInitializeProps
): Promise<PushAPI>;
static async initialize(options?: PushAPIInitializeProps): Promise<PushAPI>;
Expand Down
3 changes: 1 addition & 2 deletions packages/restapi/src/lib/pushapi/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ export class Chat {
};
try {
const chatInfo = await PUSH_CHAT.getChatInfo(request);
const finalRecipient = chatInfo.meta.group ? chatInfo.chatId : recipient;

const finalRecipient = chatInfo.meta?.group ? chatInfo.chatId : recipient;
const response: ChatInfoResponse = {
meta: chatInfo.meta,
list: chatInfo.list,
Expand Down

0 comments on commit 5b7c30a

Please sign in to comment.