Skip to content

Commit

Permalink
null handling (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
KishanBagaria authored Sep 19, 2023
1 parent a766322 commit 52d7997
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gramjs/client/dialogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ export class _DialogsIter extends RequestIter {
this.request.excludePinned = true;
this.request.offsetId = lastMessage ? lastMessage.id : 0;
this.request.offsetDate = lastMessage ? lastMessage.date! : 0;
this.request.offsetPeer =
this.buffer[this.buffer.length - 1].inputEntity;
this.request.offsetPeer = this.buffer[this.buffer.length - 1]?.inputEntity;
}
}

Expand Down

0 comments on commit 52d7997

Please sign in to comment.