Skip to content

Commit

Permalink
.type
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Apr 21, 2023
1 parent 94499d2 commit 7a1ea11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deltachat-jsonrpc/typescript/test/online.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async function waitForMessageEvent<T extends DcEvent["type"]>(
): Promise<Extract<X.EventType, { type: T; chatId: number }>> {
while (true) {
const event: X.Event = await dc.rpc.getNextEvent();
if (event.event["type"] == "IncomingMsg" && event.context_id == accountId) {
if (event.event.type == "IncomingMsg" && event.context_id == accountId) {
return event.event as any;
}
}
Expand Down

0 comments on commit 7a1ea11

Please sign in to comment.