Commit Graph

1425 Commits (cf13fff7d22960a65c123a41c7f6c51507f52dc8)
 

Author SHA1 Message Date
Wim cf13fff7d2
Release v1.21.0 (#1348) 4 years ago
Qais Patankar a9d8ac8bc0
Refactor "msg-parent-not-found" to config.ParentIDNotFound (#1347) 4 years ago
Qais Patankar 1a4717b366
Reject cross-channel message references (discord) (#1345)
Discord message references have been designed in a way for this to
support cross-channel or even cross-guild references in the future.

This will ensure the ParentID is *not* set when the message refers to a
message that was sent in a different channel.
4 years ago
Qais Patankar 6cadf12260
Add a prefix handler for unthreaded messages (discord) (#1346) 4 years ago
Wim 19d47784bd
Add threading support with token (discord) (#1342)
Webhooks don't support the threading yet, so this is token only.
In discord you can reply on each message of a thread, but this is not possible in mattermost (so some changes added there to make sure we always answer on the rootID of the thread).

Also needs some more testing with slack.

update : It now also uses the token when replying to a thread (even if webhooks are enabled), until webhooks have support for threads.
4 years ago
Qais Patankar b89102c5fc
Fix 'webook' typo in discord/webhook.go (#1344) 4 years ago
Wim 4f20ebead3
Update vendor for next release (#1343) 4 years ago
James Lu a9f89dbc64
Add support for stateless bridging via draft/relaymsg (irc) (#1339)
* irc: add support for stateless bridging via draft/relaymsg

As discussed at https://github.com/42wim/matterbridge/issues/667#issuecomment-634214165

* irc: handle the draft/relaymsg tag in spoofed messages too

* Apply suggestions from code review

Co-authored-by: Wim <wim@42.be>

* Run gofmt on irc.go

* Document relaymsg in matterbridge.toml.sample

Co-authored-by: Wim <wim@42.be>
4 years ago
wschwab 58ea1e07d2
Update README.md (#1340)
added using `chmod a+x` to make the binary executable in the installation section
4 years ago
Qais Patankar 6de4c7e971
Update webhook documentation (discord) (#1335) 4 years ago
Qais Patankar 03dc51ffa2 Split Bdiscord.Send into handleEventWebhook and handleEventBotUser (discord) 4 years ago
Qais Patankar aef2dcdfdd Move webhook specific logic to its own file (discord) 4 years ago
Qais Patankar 0494119bf4 Extract maybeGetLocalAvatar into its own function (discord) 4 years ago
Qais Patankar 0a17e21119 Remove WebhookURL support (discord) 4 years ago
Qais Patankar 52e2f926f4 Add initial transmitter implementation (discord)
This has been tested with one webhook in one channel.

Sends, edits and deletions work fine
4 years ago
Qais Patankar 611fb279bc Revert "Disable webhook editing (#1296)" (discord)
This reverts commit c23252ab53.
4 years ago
Gary Kim 41b4e64be9
Update go-nc-talk (nctalk) (#1333)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
Wim 0d7315249d
Update vendor (#1330) 4 years ago
Wim 4913766d58
Parse fencedcode in ParseMarkdown. Fixes #1127 (#1329) 4 years ago
Wim 92da8c7044
Mark messages as read (matrix). Fixes #1317 (#1328) 4 years ago
Wim 9dba3d5385
Update rocketchat vendor (#1327)
Contains fixes for #992 and adds more random ID
4 years ago
Wim 2d3c26a4b2
Implement ratelimiting (matrix). Fixes #1238 (#1326) 4 years ago
Wim 8eba2d3e50
Make handlers run async (irc) (#1325)
This makes the handlers run in a seperate go-routine in girc, and makes
sure that girc isn't blocked on executing PONG requests when
matterbridge takes a long time handling the incoming message.

This can happen when another bridge is in a backoff state where the
backoff time exceeds the IRC ping timeout.
4 years ago
Qais Patankar a8d4a27de1
Remove locale from golangci misspell (#1324) 4 years ago
Qais Patankar c42167c6f4
Refactor guild finding code (discord) (#1319) 4 years ago
Sebastian P 44d182e2f9
Add nil checks to text message handling (mumble) (#1321) 4 years ago
Wim ad95e35687 Rename jfif to jpg (whatsapp). Fixes #1292 4 years ago
Wim 640a9995f4 Refactor handleTextMessage (whatsapp) 4 years ago
Wim 95625f6871 Refactor image downloads (whatsapp) 4 years ago
Wim 2c20f72a9c Handle audio downloads (whatsapp) 4 years ago
Wim 5ad788e768 Handle video downloads (whatsapp) 4 years ago
Wim ed98c586c6 Add support for deleting messages (whatsapp) 4 years ago
Wim 3e865708d6 Refactor/cleanup code (whatsapp) 4 years ago
JeremyRand c3bcbd63c0
Add UserID to RemoteNickFormat and Tengo (#1308)
* Add UserID to RemoteNickFormat and Tengo

* Use strings.ReplaceAll in gateway.modifyUsername

Fixes a warning from gocritic linter.

* Use Unicode escape sequence instead of raw ZWSP in gateway.modifyUsername

Fixes a warning from stylecheck linter.
4 years ago
Simon THOBY 29e29439ee
Show mxids in case of clashing usernames (matrix) (#1309)
Fixes #1302.
4 years ago
Wim 0c19716f44
Join on invite (irc). Fixes #1231 (#1306) 4 years ago
Wim b24e1bafa1
Add support for irc to irc notice (irc). Fixes #754 (#1305) 4 years ago
Wim 64b899ac89
Retry until we have contacts (whatsapp). Fixes #1122 (#1304) 4 years ago
Wim aa274e5ab7
Update discordgo fork (#1303) 4 years ago
Wim 7b3eaf3ccf Bump version 4 years ago
Wim 1a5353d768
Release v1.20.0 (#1298) 4 years ago
Wim eff41759bc
Add extra debug to log time spent sending a message per bridge (#1299) 4 years ago
Wim c23252ab53
Disable webhook editing (discord) (#1296)
See https://github.com/42wim/matterbridge/issues/1255 and
https://github.com/qaisjp/go-discord-irc/issues/57

Webhook edits gets ratelimited which cause other problems with
matterbridge. Disabling for now.
4 years ago
Simon THOBY 1a3c57a031
Send the display name instead of the user name (matrix) (#1282)
* matrix: send the display name (the nickname in matrix parlance) instead of the user name

There is also the option UseUserName (already in use by the discord bridge) to turn back to the old behavior.

* matrix: update displayNames on join events

* matrix: introduce a helper.go file to keep matrix.go size reasonable
4 years ago
Wim 4cc2c914e6
Update vendor (#1297) 4 years ago
Simon THOBY cbb46293ab
Update webhook messages via new endpoint (discord)
When using the webhook, the previous method to edit a message was to
delete the old one via the classical API, and to create a new message
via the webhook. While this works, this means that editing "old" messages
lead to a mess where the chronological order is no longer respected.

This uses an hidden API explained in https://support.discord.com/hc/en-us/community/posts/360034557771
to achieve a proper edition using the webhook API.

The obvious downside of this approach is that since it is an
undocumented API for now, so there is no stability guarantee :/
4 years ago
George 765e00c949
Add NoTLS option to allow plaintext XMPP connections (#1288)
Co-authored-by: George <zhoreeq@users.noreply.github.com>
4 years ago
Simon THOBY 662359908b
Allow message edits on matrix (#1286)
based on https://github.com/Half-Shot/matrix-doc/blob/hs/1695-message-edits-proposal/proposals/1695-message-edits.md
4 years ago
Wim 0d99766686 Update slack invite 4 years ago
Wim ae3bc3358b
Allow tengo to drop messages using msgDrop (#1272) 4 years ago