mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-24 19:52:03 -08:00
Ignore these messages for now, also add a extra debug option for msteams so we can dump the whole message.
This commit is contained in:
parent
900375679b
commit
7f7ca697a0
@ -10,6 +10,7 @@ import (
|
|||||||
|
|
||||||
"github.com/42wim/matterbridge/bridge"
|
"github.com/42wim/matterbridge/bridge"
|
||||||
"github.com/42wim/matterbridge/bridge/config"
|
"github.com/42wim/matterbridge/bridge/config"
|
||||||
|
"github.com/davecgh/go-spew/spew"
|
||||||
|
|
||||||
"github.com/mattn/godown"
|
"github.com/mattn/godown"
|
||||||
msgraph "github.com/yaegashi/msgraph.go/beta"
|
msgraph "github.com/yaegashi/msgraph.go/beta"
|
||||||
@ -158,11 +159,22 @@ func (b *Bmsteams) poll(channelName string) error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if b.GetBool("debug") {
|
||||||
|
b.Log.Debug("Msg dump: ", spew.Sdump(msg))
|
||||||
|
}
|
||||||
|
|
||||||
|
// skip non-user message for now.
|
||||||
|
if msg.From.User == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if *msg.From.User.ID == b.botID {
|
if *msg.From.User.ID == b.botID {
|
||||||
b.Log.Debug("skipping own message")
|
b.Log.Debug("skipping own message")
|
||||||
msgmap[*msg.ID] = *msg.CreatedDateTime
|
msgmap[*msg.ID] = *msg.CreatedDateTime
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
msgmap[*msg.ID] = *msg.CreatedDateTime
|
msgmap[*msg.ID] = *msg.CreatedDateTime
|
||||||
if msg.LastModifiedDateTime != nil {
|
if msg.LastModifiedDateTime != nil {
|
||||||
msgmap[*msg.ID] = *msg.LastModifiedDateTime
|
msgmap[*msg.ID] = *msg.LastModifiedDateTime
|
||||||
|
1
go.mod
1
go.mod
@ -7,6 +7,7 @@ require (
|
|||||||
github.com/Philipp15b/go-steam v1.0.1-0.20190816133340-b04c5a83c1c0
|
github.com/Philipp15b/go-steam v1.0.1-0.20190816133340-b04c5a83c1c0
|
||||||
github.com/Rhymen/go-whatsapp v0.1.1-0.20200421062035-31e8111ac334
|
github.com/Rhymen/go-whatsapp v0.1.1-0.20200421062035-31e8111ac334
|
||||||
github.com/d5/tengo/v2 v2.4.2
|
github.com/d5/tengo/v2 v2.4.2
|
||||||
|
github.com/davecgh/go-spew v1.1.1
|
||||||
github.com/fsnotify/fsnotify v1.4.9
|
github.com/fsnotify/fsnotify v1.4.9
|
||||||
github.com/go-telegram-bot-api/telegram-bot-api v4.6.5-0.20181225215658-ec221ba9ea45+incompatible
|
github.com/go-telegram-bot-api/telegram-bot-api v4.6.5-0.20181225215658-ec221ba9ea45+incompatible
|
||||||
github.com/gomarkdown/markdown v0.0.0-20200127000047-1813ea067497
|
github.com/gomarkdown/markdown v0.0.0-20200127000047-1813ea067497
|
||||||
|
Loading…
Reference in New Issue
Block a user