Skip to content

Commit

Permalink
refactor: improve jumpToMessage docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed Oct 12, 2024
1 parent 50c5b9b commit e040f79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/frontend/src/stores/messagelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ class MessageListStore extends Store<MessageListState> {
* It can handle showing the message in a chat other than `this.chatId`,
* loading the message if it is missing from `this.state.messageCache`,
* and reloading `messageListItems` if the message is missing from there.
* @param msgId - when `undefined`, pop the jump stack, or,
* if the stack is empty, jump to last message.
*/
jumpToMessage: this.scheduler.lockedQueuedEffect(
'scroll',
Expand Down

0 comments on commit e040f79

Please sign in to comment.