WIP improve export

This commit is contained in:
N-Pex 2025-06-29 09:28:56 +02:00
parent 9a124c5ab9
commit 94bf35875a
3 changed files with 174 additions and 169 deletions

View file

@ -32,9 +32,6 @@ import { MatrixEvent, MatrixEventEvent } from "matrix-js-sdk";
const { t } = useI18n();
const $matrix: any = inject("globalMatrix");
type RootType = InstanceType<typeof MessageOutgoing | typeof MessageIncoming>;
const rootRef = useTemplateRef<RootType>("root");
const emits = defineEmits<
MessageEmits & { (event: "layout-change", value: { element: Element | undefined; action: () => void }): void }
>();
@ -44,8 +41,7 @@ const props = defineProps<MessageProps>();
const processThread = () => {
if (!event.value?.isRedacted()) {
const el = rootRef.value?.$el;
emits("layout-change", { element: el, action: _processThread });
_processThread();
}
};