Emitted events not passed to child

Issue #665. So make sure wrapper messages don't emit MessageEmits. More info here: https://github.com/vuejs/rfcs/discussions/397.
This commit is contained in:
N-Pex 2025-07-15 12:10:35 +02:00
parent 33c6e7cb64
commit 0194339102
8 changed files with 27 additions and 28 deletions

View file

@ -21,7 +21,7 @@ import MessageIncoming from "./MessageIncoming.vue";
import MessageOutgoing from "./MessageOutgoing.vue";
import ThumbnailView from "../../file_mode/ThumbnailView.vue";
import { useI18n } from "vue-i18n";
import { MessageEmits, MessageProps, useMessage } from "./useMessage";
import { MessageProps, useMessage } from "./useMessage";
import { KeanuEvent } from "../../../models/eventAttachment";
const { t } = useI18n();
@ -30,14 +30,14 @@ const $$sanitize: any = inject("globalSanitize");
const inOut: Ref<"in" | "out"> = ref("in");
const emits = defineEmits<MessageEmits & { (event: "download", value: KeanuEvent | undefined): void }>();
const emits = defineEmits<{ (event: "download", value: KeanuEvent | undefined): void }>();
const props = defineProps<MessageProps>();
const { event, isIncoming, attachment, inReplyToText, inReplyToSender, linkify } = useMessage(
$matrix,
t,
props,
emits,
undefined,
undefined
);