Skip to content

Commit 71cb30f

Browse files
fix invisible typing (#483)
* fix typing indicators * chore: bump invisible typing version
1 parent 6378982 commit 71cb30f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

InvisibleTyping/components/typingButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import styles from "./typingButton.scss";
77
import Settings from "../modules/settings";
88
import { buildClassName, TypingModule, useStateFromStores } from "../modules/shared";
99

10-
const ChatButton = Webpack.getBySource("CHAT_INPUT_BUTTON_NOTIFICATION")?.Z;
10+
const ChatButton = Webpack.getBySource("CHAT_INPUT_BUTTON_NOTIFICATION")?.A;
1111

1212
const removeItem = function (array: any[], item: any) {
1313
while (array.includes(item)) {

InvisibleTyping/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class InvisibleTyping {
5151
}
5252

5353
patchChannelTextArea() {
54-
const ChatButtonsGroup = Webpack.getBySource("type","showAllButtons","paymentsBlocked")?.Z;
54+
const ChatButtonsGroup = Webpack.getBySource("type","showAllButtons","paymentsBlocked")?.A;
5555

5656
Patcher.after(ChatButtonsGroup, "type", (_, args, res) => {
5757
if (args.length == 2 && !args[0].disabled && args[0].type.analyticsName == "normal" && res.props.children && Array.isArray(res.props.children)) {

InvisibleTyping/modules/shared.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Webpack } from "@api";
22

3-
export const Dispatcher = Webpack.getByKeys("_dispatch");
3+
export const Dispatcher = Webpack.getByKeys('dispatch', 'register', { searchExports: true });
44
export const Flux = Webpack.getByKeys("Store");
55
export const TypingModule = Webpack.getByKeys("startTyping");
66
export const useStateFromStores = Webpack.getByStrings("useStateFromStores", { searchExports: true });

InvisibleTyping/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "InvisibleTyping",
3-
"version": "1.4.4",
3+
"version": "1.4.5",
44
"author": "Strencher",
55
"authorId": "415849376598982656",
66
"description": "Enhanced version of silent typing.",

0 commit comments

Comments
 (0)