1
0
Fork 0
forked from Mirrors/gomuks

web/composer: fix comparison operator

This commit is contained in:
Tulir Asokan 2024-11-08 15:20:06 +01:00
parent acbbd2a1f9
commit 0da7ed172d

View file

@ -258,7 +258,7 @@ const MessageComposer = () => {
typingSentAt.current = now
client.rpc.setTyping(room.roomID, 10_000)
.catch(err => console.error("Failed to send typing notification:", err))
} else if (evt.target.value == "" && typingSentAt.current > 0) {
} else if (evt.target.value === "" && typingSentAt.current > 0) {
typingSentAt.current = 0
client.rpc.setTyping(room.roomID, 0)
.catch(err => console.error("Failed to send stop typing notification:", err))