mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-14 03:50:26 +00:00
Act only on UserTypingEvents when enabled
This commit is contained in:
parent
3d281b3316
commit
59994da176
@ -49,6 +49,9 @@ func (b *Bslack) handleSlackClient(messages chan *config.Message) {
|
|||||||
}
|
}
|
||||||
switch ev := msg.Data.(type) {
|
switch ev := msg.Data.(type) {
|
||||||
case *slack.UserTypingEvent:
|
case *slack.UserTypingEvent:
|
||||||
|
if !b.GetBool("ShowUserTyping") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
rmsg, err := b.handleTypingEvent(ev)
|
rmsg, err := b.handleTypingEvent(ev)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.Log.Errorf("%#v", err)
|
b.Log.Errorf("%#v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user