Hide reconnected successfully message if report_connection_retry is false

This commit is contained in:
Tulir Asokan 2020-05-29 21:06:25 +03:00
parent e2261b80b6
commit 7947ba616c

View file

@ -597,7 +597,9 @@ func (user *User) tryReconnect(msg string) {
err := user.Conn.Restore() err := user.Conn.Restore()
if err == nil { if err == nil {
user.ConnectionErrors = 0 user.ConnectionErrors = 0
if user.bridge.Config.Bridge.ReportConnectionRetry {
_, _ = user.bridge.Bot.SendNotice(user.GetManagementRoom(), "Reconnected successfully") _, _ = user.bridge.Bot.SendNotice(user.GetManagementRoom(), "Reconnected successfully")
}
user.PostLogin() user.PostLogin()
return return
} else if err.Error() == "init responded with 400" { } else if err.Error() == "init responded with 400" {