diff options
author | Qais Patankar <qaisjp@gmail.com> | 2020-03-22 17:39:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 18:39:11 +0100 |
commit | 98033b1ba77fcf55378eccf35c2a251b1278464b (patch) | |
tree | fd5d46b0a3d0e6358cd29345bae47bdd5a820ec7 /bridge/discord/handlers.go | |
parent | 2b7eab629d959b10388d21cf6242fdfbdbe0e197 (diff) | |
download | matterbridge-msglm-98033b1ba77fcf55378eccf35c2a251b1278464b.tar.gz matterbridge-msglm-98033b1ba77fcf55378eccf35c2a251b1278464b.tar.bz2 matterbridge-msglm-98033b1ba77fcf55378eccf35c2a251b1278464b.zip |
Don't transmit typing events from ourselves (slack/discord) (#1056)
Diffstat (limited to 'bridge/discord/handlers.go')
-rw-r--r-- | bridge/discord/handlers.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go index 2bae3664..79697266 100644 --- a/bridge/discord/handlers.go +++ b/bridge/discord/handlers.go @@ -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 |