Skip to content

Commit

Permalink
feat(NMV): ack channel when user scrolls to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexogamer committed Nov 10, 2023
1 parent 2ee0e02 commit 6ad3e98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MessageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export const NewMessageView = observer(
if (viewHeight - position <= 1) {
console.log('bonk!');
setAtEndOfPage(true);
channel.ack(channel.last_message_id ?? '01ANOMESSAGES', true);
} else {
if (atEndOfPage) {
setAtEndOfPage(false);
Expand Down

0 comments on commit 6ad3e98

Please sign in to comment.