Skip to content

Commit

Permalink
fix: reply bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyKomodo committed Feb 22, 2024
1 parent 42e9af4 commit da05ccc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/app/chat/UserMessageButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ const emit = defineEmits<{
}>();
const tray = useTray("Reply", () => ({
id: props.msg.parent?.id ?? props.msg.id,
body: props.msg.parent?.body ?? props.msg.body,
deleted: props.msg.parent?.deleted ?? props.msg.moderation.deleted,
...(props.msg.parent?.author ?? props.msg.author
id: props.msg.id,
body: props.msg.body,
deleted: props.msg.moderation.deleted,
...(props.msg.author
? {
authorID: props.msg.parent?.uid ?? props.msg.author?.id,
username: props.msg.parent?.author?.username ?? props.msg.author?.username,
displayName: props.msg.parent?.author?.displayName ?? props.msg.author?.displayName,
authorID: props.msg.author?.id,
username: props.msg.author?.username,
displayName: props.msg.author?.displayName,
}
: {}),
}));
Expand Down

0 comments on commit da05ccc

Please sign in to comment.