Fix previous-source calculation (#4656)

CondensedMessage is a proxy object, outside of the templates
we need to unwrap it manually
This commit is contained in:
Reto 2022-12-17 22:59:07 +01:00 committed by GitHub
parent c67df36a29
commit 073a38ef1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" &&