Don't transmit typing events from ourselves (slack/discord) (#1056)

This commit is contained in:
Qais Patankar
2020-03-22 17:39:11 +00:00
committed by GitHub
parent 2b7eab629d
commit 98033b1ba7
3 changed files with 17 additions and 1 deletions

View File

@@ -36,6 +36,11 @@ func (b *Bdiscord) messageTyping(s *discordgo.Session, m *discordgo.TypingStart)
return
}
// Ignore our own typing messages
if m.UserID == b.userID {
return
}
rmsg := config.Message{Account: b.Account, Event: config.EventUserTyping}
rmsg.Channel = b.getChannelName(m.ChannelID)
b.Remote <- rmsg