Showing the changes to scripts/communityScripts (2 of 2 files). Show all
Unified · Split
| @@ -230,13 +230,13 @@ Rectangle { · 229 unmodified lines | ||
| 230 | 230 | event.accepted = true; |
| 231 | 231 | toScript({type: "send_message", message: text, channel: pageVal}); |
| 232 | 232 | text = "" |
| 233 | + } | |
| 234 | + } | |
| 235 | + onTextChanged: { | |
| 236 | + if (text === "") { | |
| 233 | 237 | toScript({type: "action", action: "end_typing"}); |
| 234 | 238 | } 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"}); | |
| 240 | 240 | } |
| 241 | 241 | } |
| 242 | 242 | onFocusChanged: { |
| @@ -134,7 +134,7 @@ function ChatBubbles_RecvMsg(channel, msg, senderID, localOnly) { · 133 unmodified lines | ||
| 134 | 134 | if (channel !== CHAT_CHANNEL && channel !== TYPING_NOTIFICATION_CHANNEL) { return; } |
| 135 | 135 | |
| 136 | 136 | // 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; } | |
| 138 | 138 | |
| 139 | 139 | let data; |
| 140 | 140 | try { |