Skip to content

Commit

Permalink
Auto set message is read in case no startingFromItemId
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Dec 24, 2024
1 parent ce804c8 commit ab1eb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/MessageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
}
this.updateTopAndBottomIds();
if (this.isMobile() && this.items.length) {
if (!startingFromItemId && this.items.length) {
axios.put(`/api/chat/${this.chatId}/message/read/${this.startingFromItemIdBottom}`, null, {
signal: this.requestAbortController.signal
})
Expand Down

0 comments on commit ab1eb8e

Please sign in to comment.