matrix-org / matrix-appservice-irc

Node.js IRC bridge for Matrix
Apache License 2.0
461 stars 149 forks source link

Some Matrix messages are sent twice to IRC #1699

Open progval opened 1 year ago

progval commented 1 year ago

After this morning's Libera bridge restart, message $7C4Og4Gl_C_yWZl6z4r5AVQLQwBvXDK1ZjF3QLNQKfw from room !lAZsOCrTyhrhnitJGE:matrix.org was sent twice from Matrix to IRC (with no reconnection of the puppet inbetween)

progval commented 1 year ago

Got another instance, but not close to a bridge restart, this event in HQ:

{
  "content": {
    "body": "> <@ilmari:matrix.org> The default limit depends on the homeserver implementation. Synapse defaults to 50MB, I don't know about others, e.g.  Dendrite, Conduit or Construct.\n\nDendrite is 10mb when going from docker.",
    "format": "org.matrix.custom.html",
    "formatted_body": "<mx-reply><blockquote><a href=\"https://matrix.to/#/!OGEhHVWSdvArJzumhm:matrix.org/$7of68RzV_hvpKY5syGXNImq0vn7agz0xjD1e6QuBgfM?via=matrix.org&via=libera.chat&via=wolfo.tech\">In reply to</a> <a href=\"https://matrix.to/#/@ilmari:matrix.org\">@ilmari:matrix.org</a><br>The default limit depends on the homeserver implementation. Synapse defaults to 50MB, I don't know about others, e.g.  Dendrite, Conduit or Construct.</blockquote></mx-reply>Dendrite is 10mb when going from docker.",
    "m.relates_to": {
      "m.in_reply_to": {
        "event_id": "$7of68RzV_hvpKY5syGXNImq0vn7agz0xjD1e6QuBgfM"
      }
    },
    "msgtype": "m.text"
  },
  "origin_server_ts": 1682435439683,
  "room_id": "!OGEhHVWSdvArJzumhm:matrix.org",
  "sender": "@conspicuous:matrix.black-goose-63.telebit.io",
  "type": "m.room.message",
  "unsigned": {},
  "event_id": "$at94UY1Lct7dL27b0OWyM8Iq725i36EQCMpZzPqbIhk",
  "user_id": "@conspicuous:matrix.black-goose-63.telebit.io"
}

was sent twice:

16:12:23 <conspicuous[m]1> <ilmari[m]> "The default limit depends on the..." <- Dendrite is 10mb when going from docker.
16:13:03 <conspicuous[m]1> <ilmari[m]> "The default limit depends on the..." <- Dendrite is 10mb when going from docker.