Skip to content

Commit 26fb223

Browse files
committed
Actually subscribe to the typing indicator channel
1 parent 8243b69 commit 26fb223

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

scripts/communityScripts/armored-chat/armored_chat.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Rectangle {
232232
text = ""
233233
toScript({type: "action", action: "end_typing"});
234234
} else {
235-
if (text === "") {
235+
if (text === "" || (event.key === Qt.Key_Backspace && text.length === 1)) {
236236
toScript({type: "action", action: "end_typing"});
237237
} else {
238238
toScript({type: "action", action: "start_typing"});

scripts/communityScripts/chatBubbles.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,13 @@ AvatarList.avatarSessionChangedEvent.connect((_, oldSessionID) => ChatBubbles_De
202202

203203
settings = Settings.getValue("ChatBubbles-Config", settings);
204204
Messages.messageReceived.connect(ChatBubbles_RecvMsg);
205+
Messages.subscribe(TYPING_NOTIFICATION_CHANNEL);
206+
Messages.subscribe("chat");
205207

206208
Script.scriptEnding.connect(() => {
207209
Settings.setValue("ChatBubbles-Config", settings);
208210
Messages.messageReceived.disconnect(ChatBubbles_RecvMsg);
211+
Messages.unsubscribe(TYPING_NOTIFICATION_CHANNEL);
212+
Messages.unsubscribe("chat");
209213
ChatBubbles_DeleteAll();
210214
});

0 commit comments

Comments
 (0)