telegram icon indicating copy to clipboard operation
telegram copied to clipboard

Restart of bridge causes Relaybotted state events to be echoed back into matrix

Open maltee1 opened this issue 3 years ago • 0 comments

Upon bridge restart, the most recent relaybotted state events are echoed from the telegram group back into matrix (sent from the relaybot ghost). This appears to affect only those state events that were sent after the last regular message. I suspect that the marker set by the bridge to mark the most recently bridged message is not moved in the case of state events, causing the bridge to pick them up when it tries to figure out what happened in telegram while it was gone. Possibly the marker needs to be moved or the sync after restart should ignore messages by the relaybot. To reproduce

  1. bridge a room into signal and invite the relaybot
  2. Have a non-logged-in user join, leave or change name in matrix.
  3. restart the bridge
  4. observe spam.

maltee1 avatar Apr 27 '22 08:04 maltee1