From 98033b1ba77fcf55378eccf35c2a251b1278464b Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Sun, 22 Mar 2020 17:39:11 +0000 Subject: Don't transmit typing events from ourselves (slack/discord) (#1056) --- bridge/discord/handlers.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bridge/discord/handlers.go') 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 -- cgit v1.2.3