matrix-org / matrix-appservice-irc

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

Duplicate IRC -> Matrix messages #1689

Open progval opened 1 year ago

progval commented 1 year ago

I just had this chat in #matrix on Libera:

08:22:39 <Pynk[m]> <val> "where can I find a list of..." <- https://joinmatrix.org/servers/
08:26:07 <val> Pynk[m]: I was looking for implementations
08:26:09 <propeller0406[m]> <val> "where can I find a list of..." <- https://tatsumoto-ren.github.io/blog/list-of-matrix-servers.html
08:26:09 <propeller0406[m]> https://joinmatrix.org/servers/
08:26:25 <val> propeller0406[m]: ditto

I wrote two messages, but four events were sent to the room, in this order:

{
  "content": {
    "body": "propeller0406 🇨🇵🇨🇵🇨🇵: ditto",
    "format": "org.matrix.custom.html",
    "formatted_body": "<a href=\"https://matrix.to/#/@propeller0406:nitro.chat\">propeller0406 🇨🇵🇨🇵🇨🇵</a>: ditto",
    "msgtype": "m.text"
  },
  "origin_server_ts": 1678955266864,
  "sender": "@val:libera.chat",
  "type": "m.room.message",
  "unsigned": {},
  "event_id": "$uTwHfRgZJQALsx7rs75VB1smbIUID7Y2JKfPH87mL5k",
  "room_id": "!OGEhHVWSdvArJzumhm:matrix.org"
}
{
  "content": {
    "body": "Pynk ⚡️: I was looking for implementations",
    "format": "org.matrix.custom.html",
    "formatted_body": "<a href=\"https://matrix.to/#/@pynk:pynk.dev\">Pynk ⚡️</a>: I was looking for implementations",
    "msgtype": "m.text"
  },
  "origin_server_ts": 1678955266864,
  "sender": "@val:libera.chat",
  "type": "m.room.message",
  "unsigned": {},
  "event_id": "$kwNXxfEP_GqyC07mrk81Dg7E9sBwTtp_X_MgHggyGh4",
  "room_id": "!OGEhHVWSdvArJzumhm:matrix.org"
}
{
  "content": {
    "body": "Pynk ⚡️: I was looking for implementations",
    "format": "org.matrix.custom.html",
    "formatted_body": "<a href=\"https://matrix.to/#/@pynk:pynk.dev\">Pynk ⚡️</a>: I was looking for implementations",
    "msgtype": "m.text"
  },
  "origin_server_ts": 1678955267199,
  "sender": "@val:libera.chat",
  "type": "m.room.message",
  "unsigned": {},
  "event_id": "$0fhXfb09cqq6as0Frkho4c-87dMxD5xyl2hm2H_gQcg",
  "room_id": "!OGEhHVWSdvArJzumhm:matrix.org"
}
{
  "content": {
    "body": "propeller0406 🇨🇵🇨🇵🇨🇵: ditto",
    "format": "org.matrix.custom.html",
    "formatted_body": "<a href=\"https://matrix.to/#/@propeller0406:nitro.chat\">propeller0406 🇨🇵🇨🇵🇨🇵</a>: ditto",
    "msgtype": "m.text"
  },
  "origin_server_ts": 1678955267427,
  "sender": "@val:libera.chat",
  "type": "m.room.message",
  "unsigned": {},
  "event_id": "$iScmRu3QekJ8Rtx6MeLsTRplTxjJy6882uuPRRZm3FY",
  "room_id": "!OGEhHVWSdvArJzumhm:matrix.org"
}