|
|
|
@ -21,6 +21,7 @@ import "./styles.css";
|
|
|
|
|
import { addContextMenuPatch, NavContextMenuPatchCallback, removeContextMenuPatch } from "@api/ContextMenu";
|
|
|
|
|
import { Microphone } from "@components/Icons";
|
|
|
|
|
import { Devs } from "@utils/constants";
|
|
|
|
|
import { MessageActions } from "@utils/discord";
|
|
|
|
|
import { ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, openModal } from "@utils/modal";
|
|
|
|
|
import { useAwaiter } from "@utils/react";
|
|
|
|
|
import definePlugin from "@utils/types";
|
|
|
|
@ -36,7 +37,6 @@ import { VoicePreview } from "./VoicePreview";
|
|
|
|
|
import { VoiceRecorderWeb } from "./WebRecorder";
|
|
|
|
|
|
|
|
|
|
const CloudUtils = findByPropsLazy("CloudUpload");
|
|
|
|
|
const MessageCreator = findByPropsLazy("getSendMessageOptionsForReply", "sendMessage");
|
|
|
|
|
const PendingReplyStore = findStoreLazy("PendingReplyStore");
|
|
|
|
|
const OptionClasses = findByPropsLazy("optionName", "optionIcon", "optionLabel");
|
|
|
|
|
|
|
|
|
@ -100,7 +100,7 @@ function sendAudio(blob: Blob, meta: AudioMetadata) {
|
|
|
|
|
waveform: meta.waveform,
|
|
|
|
|
duration_secs: meta.duration,
|
|
|
|
|
}],
|
|
|
|
|
message_reference: reply ? MessageCreator.getSendMessageOptionsForReply(reply)?.messageReference : null,
|
|
|
|
|
message_reference: reply ? MessageActions.getSendMessageOptionsForReply(reply)?.messageReference : null,
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|