Skip to content

Commit b8a3a71

Browse files
committed
Fix typing indicator keypress lag and self bubbles option
1 parent 455c256 commit b8a3a71

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/communityScripts/armored-chat/armored_chat.qml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,13 @@ Rectangle {
230230
event.accepted = true;
231231
toScript({type: "send_message", message: text, channel: pageVal});
232232
text = ""
233+
}
234+
}
235+
onTextChanged: {
236+
if (text === "") {
233237
toScript({type: "action", action: "end_typing"});
234238
} else {
235-
if (text === "" || (event.key === Qt.Key_Backspace && text.length === 1)) {
236-
toScript({type: "action", action: "end_typing"});
237-
} else {
238-
toScript({type: "action", action: "start_typing"});
239-
}
239+
toScript({type: "action", action: "start_typing"});
240240
}
241241
}
242242
onFocusChanged: {

scripts/communityScripts/chatBubbles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function ChatBubbles_RecvMsg(channel, msg, senderID, localOnly) {
134134
if (channel !== CHAT_CHANNEL && channel !== TYPING_NOTIFICATION_CHANNEL) { return; }
135135

136136
// don't spawn bubbles for MyAvatar if the setting is disabled
137-
//if (!SELF_BUBBLES && (senderID === MyAvatar.sessionID || !MyAvatar.sessionID)) { return; }
137+
if (!SELF_BUBBLES && (senderID === MyAvatar.sessionUUID || !MyAvatar.sessionUUID)) { return; }
138138

139139
let data;
140140
try {

0 commit comments

Comments
 (0)