()
| 54 | let typingTimer: NodeJS.Timeout; |
| 55 | |
| 56 | const userStartsTyping = function () { |
| 57 | if (isUserTyping) { |
| 58 | return; |
| 59 | } |
| 60 | setUserTyping(true); |
| 61 | userTyping({ typing: true, username: currentUser?.displayName! }); |
| 62 | }; |
| 63 | |
| 64 | const userStopsTyping = function () { |
| 65 | clearTimeout(typingTimer); |