From 98a57e873fe5944b04e1fd31f3babfcfbf5e49d9 Mon Sep 17 00:00:00 2001 From: WofWca Date: Sun, 3 Sep 2023 19:20:06 +0400 Subject: [PATCH] refactor: fix typo in var name `onWebxcSendToChat` (#3376) --- src/renderer/ScreenController.tsx | 2 +- src/renderer/runtime.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer/ScreenController.tsx b/src/renderer/ScreenController.tsx index 716a39de4f..3ee7b97675 100644 --- a/src/renderer/ScreenController.tsx +++ b/src/renderer/ScreenController.tsx @@ -166,7 +166,7 @@ export default class ScreenController extends Component { } runtime.onOpenQrUrl = processOpenQrUrl - runtime.onWebxcSendToChat = (file, text) => { + runtime.onWebxdcSendToChat = (file, text) => { if (this.openSendToDialogId) { this.closeDialog(this.openSendToDialogId) this.openSendToDialogId = undefined diff --git a/src/renderer/runtime.ts b/src/renderer/runtime.ts index f6b68849cf..2ef420ab49 100644 --- a/src/renderer/runtime.ts +++ b/src/renderer/runtime.ts @@ -132,7 +132,7 @@ interface Runtime { | ((kind: 'about' | 'keybindings' | 'settings') => void) | undefined onOpenQrUrl: ((url: string) => void) | undefined - onWebxcSendToChat: + onWebxdcSendToChat: | (( file: { file_name: string; file_content: string } | null, text: string | null @@ -149,7 +149,7 @@ class Browser implements Runtime { | ((kind: 'about' | 'keybindings' | 'settings') => void) | undefined onOpenQrUrl: ((url: string) => void) | undefined - onWebxcSendToChat: + onWebxdcSendToChat: | (( file: { file_name: string; file_content: string } | null, text: string | null @@ -322,7 +322,7 @@ class Browser implements Runtime { } class Electron implements Runtime { onResumeFromSleep: (() => void) | undefined - onWebxcSendToChat: + onWebxdcSendToChat: | (( file: { file_name: string; file_content: string } | null, text: string | null @@ -554,7 +554,7 @@ class Electron implements Runtime { _ev, file: { file_name: string; file_content: string } | null, text: string | null - ) => this.onWebxcSendToChat?.(file, text) + ) => this.onWebxdcSendToChat?.(file, text) ) ipcBackend.on('onResumeFromSleep', () => this.onResumeFromSleep?.()) }