Skip to content

Commit

Permalink
Fix previous-source calculation (#4656)
Browse files Browse the repository at this point in the history
CondensedMessage is a proxy object, outside of the templates
we need to unwrap it manually
  • Loading branch information
brunnre8 committed Dec 17, 2022
1 parent c67df36 commit 073a38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/MessageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export default defineComponent({
};
const isPreviousSource = (currentMessage: ClientMessage | Msg, id: number) => {
const previousMessage = condensedMessages[id - 1];
const previousMessage = condensedMessages.value[id - 1];
return !!(
previousMessage &&
currentMessage.type === "message" &&
Expand Down

0 comments on commit 073a38e

Please sign in to comment.