Fixing #835 and writing config.go and matterbridge.toml.sample entries
This commit is contained in:
@@ -79,6 +79,7 @@ type Protocol struct {
|
||||
ColorNicks bool // only irc for now
|
||||
Debug bool // general
|
||||
DebugLevel int // only for irc now
|
||||
DelayedEnable bool // only for xmpp now
|
||||
EditSuffix string // mattermost, slack, discord, telegram, gitter
|
||||
EditDisable bool // mattermost, slack, discord, telegram, gitter
|
||||
IconURL string // mattermost, slack
|
||||
|
||||
@@ -331,6 +331,11 @@ func (b *Bxmpp) skipMessage(message xmpp.Chat) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// skip delayed messages
|
||||
return message.Stamp.IsZero()
|
||||
// disable delayed skiping #835
|
||||
if b.GetBool("DelayedEnable") {
|
||||
return false
|
||||
} else {
|
||||
// skip delayed messages
|
||||
return message.Stamp.IsZero()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -277,6 +277,11 @@ StripNick=false
|
||||
#OPTIONAL (default false)
|
||||
ShowTopicChange=false
|
||||
|
||||
#Enable to fix a problem where xmpp servers dont send timestamps and all messages are skipped. See https://github.com/42wim/matterbridge/issues/835
|
||||
#This will bypass the check for delayed messages.
|
||||
#OPTIONAL (default false)
|
||||
DelayedEnable=false
|
||||
|
||||
###################################################################
|
||||
#mattermost section
|
||||
###################################################################
|
||||
|
||||
Reference in New Issue
Block a user