42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.66k stars 618 forks source link

Chat log repeated with duplicate messages after reconnection to Matrix #2144

Open bkil opened 6 months ago

bkil commented 6 months ago

The Matrix home server is slow and/or failing calls sometimes. There are many outages nowadays. Other legs of the bridge such as XMPP and Delta.Chat see the last few messages coming in from Matrix repeated every once in a while, sometimes multiple times in succession.

Matterbridge does not seem to produce any error in its log.

Loosely related: #1866

bkil commented 6 months ago

Probably the following was the root cause, however, it could be nice to have related error checking in Matterbridge as well, because it did not cause visible issues for interactive Matrix clients: https://github.com/element-hq/synapse/pull/17215