mautrix / facebook

A Matrix-Facebook Messenger puppeting bridge
https://matrix.to/#/#facebook:maunium.net
GNU Affero General Public License v3.0
389 stars 64 forks source link

Delay sending disconnected warnings and suppress if connection is restored in short time #157

Closed MurzNN closed 2 years ago

MurzNN commented 3 years ago

Almost every day I receive the message Disconnected from Facebook Messenger: MQTT Error: no connection, retrying in 0 seconds, and immediately after this - Connected to Facebook Messenger, that looks too noisy.

Will be good to add the option for delay sending disconnected warnings and suppress them, if connection is restored in given period.

CarlAmbroselli commented 2 years ago

@MurzNN this is now supported using the config option temporary_disconnect_notices in the bridge config: https://github.com/mautrix/facebook/blob/6cdcbc21e2489159887c6d529cac80f6cd05b4c1/mautrix_facebook/example-config.yaml#L225