mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +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 isPreviousSource = (currentMessage: ClientMessage | Msg, id: number) => {
|
||||||
const previousMessage = condensedMessages[id - 1];
|
const previousMessage = condensedMessages.value[id - 1];
|
||||||
return !!(
|
return !!(
|
||||||
previousMessage &&
|
previousMessage &&
|
||||||
currentMessage.type === "message" &&
|
currentMessage.type === "message" &&
|
||||||
|
|
Loading…
Reference in a new issue