mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-24 05:47:00 -04:00
Fixes
This commit is contained in:
parent
acf04bb01d
commit
90d946e7c6
26 changed files with 84 additions and 84 deletions
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
import { findGroupChildrenByChildId, NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||
import { addButton, removeButton } from "@api/MessagePopover";
|
||||
import { addMessagePopoverButton, removeMessagePopoverButton } from "@api/MessagePopover";
|
||||
import { classNameFactory } from "@api/Styles";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import { sendMessage } from "@utils/discord";
|
||||
|
@ -103,7 +103,7 @@ export default definePlugin({
|
|||
"message": messageCtxPatch
|
||||
},
|
||||
start() {
|
||||
addButton("vc-repeat", message => {
|
||||
addMessagePopoverButton("vc-repeat", message => {
|
||||
if (!message.content && message.stickerItems.length === 0) return null;
|
||||
|
||||
return {
|
||||
|
@ -119,7 +119,7 @@ export default definePlugin({
|
|||
document.addEventListener("keydown", keydownListener);
|
||||
},
|
||||
stop() {
|
||||
removeButton("vc-repeat");
|
||||
removeMessagePopoverButton("vc-repeat");
|
||||
|
||||
document.removeEventListener("keyup", keyupListener);
|
||||
document.removeEventListener("keydown", keydownListener);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue