mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 03:53:08 +00:00
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:
parent
c67df36a29
commit
073a38ef1e
1 changed files with 1 additions and 1 deletions
|
@ -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" &&
|
||||
|
|
Loading…
Reference in a new issue