We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f8f8a commit 7273bd5Copy full SHA for 7273bd5
scripts/fb_whoIsTyping.js
@@ -31,7 +31,10 @@ export default {
31
websocket_instant.addEventListener("message", async function (achunk) {
32
let utf8_str = new TextDecoder("utf-8").decode(achunk.data);
33
34
- if (utf8_str.includes("updateTypingIndicator")) {
+ if (
35
+ utf8_str.includes("updateTypingIndicator") ||
36
+ utf8_str.includes("mid.$")
37
+ ) {
38
let isStartTyping = utf8_str.includes(",true)");
39
let isStopTyping = utf8_str.includes(",false)");
40
@@ -40,7 +43,7 @@ export default {
43
JSON.parse(arr[arr.length - 2])
41
44
);
42
45
- console.log(uid, isStartTyping);
46
+ console.log(uid, isStartTyping, utf8_str);
47
saveTyingEvent(uid, isStartTyping);
48
}
49
});
0 commit comments