summaryrefslogtreecommitdiffstats
path: root/bridge
Commit message (Collapse)AuthorAgeFilesLines
* Support Telegram animated stickers (tgs) format (#1173)Ben Wiederhake2020-08-234-9/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is half a fix for #874 This patch introduces a new config flag: - MediaConvertTgs These need to be treated independently from the existing MediaConvertWebPToPNG flag because Tgs→WebP results in an *animated* WebP, and the WebP→PNG converter can't handle animated WebP files yet. Furthermore, some platforms (like discord) don't even support animated WebP files, so the user may want to fall back to static PNGs (not APNGs). The final reason why this is only half a fix is that this introduces an external dependency, namely lottie, to be installed like this: $ pip3 install lottie cairosvg This patch works by writing the tgs to a temporary file in /tmp, calling lottie to convert it (this conversion may take several seconds!), and then deleting the temporary file. The temporary file is absolutely necessary, as lottie refuses to work on non-seekable files. If anyone comes up with a reasonable use case where /tmp is unavailable, I can add yet another config option for that, if desired. Telegram will bail out if the option is configured but lottie isn't found.
* Remove HTML formatting for push messages (#1188) (#1189)Dellle2020-08-201-3/+12
| | | | | | | When there is a valid HTML formatting then remove this in the cleartext field of the matrix client. This leads to nicer push messages on smartphone apps. Fix #1188
* Use mattermost v5 module (#1192)Wim2020-08-102-2/+2
|
* Handle panic in whatsapp. Fixes #1180 (#1184)Wim2020-07-301-1/+3
|
* Add Nextcloud Talk support (#1167)Gary Kim2020-07-181-0/+114
| | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Add an option to log into a file rather than stdout (#1168)z3bra2020-07-181-0/+11
| | | Use Logfile option in the `[general]` section
* Fix MarkdownV2 support in Telegram (#1169)Andrey Groshev2020-07-122-0/+8
|
* Add websocket to API (#970)haykam8212020-07-121-4/+59
| | | Co-authored-by: Qais Patankar <qaisjp@gmail.com>
* Reload user information when a new contact is detected (whatsapp) (#1160)Nathanaël2020-06-251-1/+26
| | | Before returning an empty string, we refresh the WhatsApp contacts and if we found the one we wanted, we can return a real name. Fixes #796
* Add sane RemoteNickFormat default for API (#1157)Qais Patankar2020-06-253-6/+33
|
* Skip gIRC built-in rate limiting (irc) (#1164)James Lu2020-06-241-0/+2
| | | | By default, gIRC rate limits all outgoing messages. Since matterbridge already implements message throttling, this is extra layer of throttling is not necessary.
* Only colour IRC nicks if there is one. (#1161)TheHolyRoger2020-06-241-1/+1
|
* Ignore non-user messages (msteams). Fixes #1141 (#1149)Wim2020-05-241-0/+12
| | | | | Ignore these messages for now, also add a extra debug option for msteams so we can dump the whole message.
* Prevent re-requesting avatar data (xmpp) (#1117)Alexander2020-05-241-6/+14
| | | | | Prevent asking the server again and again for a user's avatar if the server does not respond to our initial request.
* Update dependencies / vendor (#1146)Wim2020-05-241-1/+1
|
* Add StripMarkdown option (irc). (#1145)Wim2020-05-232-0/+6
| | | Enable `StripMarkdown` to strip markdown for irc.
* Implement xep-0245 (xmpp). Closes #1137 (#1144)Wim2020-05-231-0/+7
|
* Fix forward from hidden users (telegram). Closes #1131 (#1143)Wim2020-05-231-13/+23
| | | | Use ForwardDate to check if a message is forwarded. If we have a nil ForwardedFrom then make this an unknown user.
* Add an option to disable sending HTML to matrix. Fixes #1022 (#1135)Wim2020-05-142-0/+9
|
* Do not use webhooks when token is configured (slack) (fixes #1123) (#1134)Wim2020-05-142-2/+2
|
* Avoid creating invalid url when the user doesn't have an avatar (matrix) (#1130)Tiago Epifânio2020-05-111-1/+3
|
* Fix webhook EventUserAction messages being skipped (discord) (#1133)Qais Patankar2020-05-111-1/+1
| | | Fixes #1132
* Fix #1049: missing space before embeds (discord) (#1124)Qais Patankar2020-05-072-6/+6
|
* Fix #1120: replaceAction "_" crash (discord) (#1121)Qais Patankar2020-04-251-2/+3
|
* Add an ID cache (discord). Fixes #1106 (#1111)Wim2020-04-212-0/+43
| | | | | | | | When a webhook "edits" a message, it does this by deleting the message and creating a new one with the new content. On creation of this new message, we'll get another ID then already is know by the gateway in its id cache. So we add it in our own cache and replace it whenever we want to edit/delete it again.
* Remove panics and retry polling on failure (msteams). Fixes #1104 (#1105)Wim2020-04-211-4/+12
|
* Clip too long messages on 3000 length (slack). Fixes #1081 (#1102)Wim2020-04-191-0/+2
|
* Add extra space before colon in attachments (irc). Fixes #1089 (#1101)Wim2020-04-191-2/+2
|
* Ignore non-critical errors (whatsapp). Fixes #1094 (#1100)Wim2020-04-191-1/+2
|
* Add JoinDelay option (irc). Fixes #1084 (#1098)Wim2020-04-192-0/+3
|
* Prevent image/message looping (slack). Fixes #1088 (#1096)Wim2020-04-181-6/+10
| | | Also check for our matterbridge ID in Blocks set in SubMessages.
* Relay Joins/Topic changes in RocketChat bridge (#1085)ldruschk2020-04-182-1/+30
| | | This pull request properly sets the events EventJoinLeave and EventTopicChange for messages from the RocketChat bridge and drops messages which are neither one of those events nor plain messages.
* Implement User Avatar spoofing of XMPP users (#1090)Alexander2020-04-163-2/+82
| | | * Implement User Avatar spoofing of XMPP users
* Update Rhymen/go-whatsapp vendor and whatsapp version (#1078)Wim2020-04-091-1/+1
|
* Reset start timestamp on reconnect (whatsapp). Fixes #1059 (#1064)Wim2020-03-311-0/+1
|
* Use DebugWriter after upstream changes (xmpp)Wim2020-03-291-1/+3
|
* Use upstream yaegashi/msgraph.go/msauth (msteams) (#1067)Wim2020-03-281-2/+1
|
* Update client version whatsapp. Fixes #1061 (#1062)Wim2020-03-281-0/+1
| | | See https://github.com/Rhymen/go-whatsapp/issues/305
* Don't transmit typing events from ourselves (slack/discord) (#1056)Qais Patankar2020-03-223-1/+17
|
* Strip extra info from emotes (discord) (#1052)Qais Patankar2020-03-222-0/+8
|
* Update vendor yaegashi/msgraph.go to v0.1.2 (1)Qais Patankar2020-03-222-2/+2
|
* Fix duplicate separator on empty description/url (discord). Fixes #1008 (#1035)Wim2020-03-212-1/+89
| | | | Make this work for all possible cases. Add tests
* Use blocks not attachments (slack) (#1048)Qais Patankar2020-03-212-11/+21
| | | | This removes the extra space below messages, as shown in https://user-images.githubusercontent.com/923242/77235190-a3359980-6bab-11ea-8b7b-697d730ae5c1.png
* Fix #1039: messages sent to Slack being synced back (#1046)Qais Patankar2020-03-211-1/+2
| | | | | This is a regression from https://github.com/42wim/matterbridge/pull/581#issuecomment-562937576 Behaves the same as https://github.com/matterbridge/slack/commit/95190f11bfb6405b0394b75a29bd1c1bb91f553e
* Support JSON and YAML config formats (#1045)Jakub2020-03-181-4/+18
| | | Signed-off-by: Jakub Sokołowski <jakub@status.im>
* Fix #1027: warning when handling inbound webhooks (discord) (#1044)Qais Patankar2020-03-181-3/+3
|
* Refactor webhook permission checksQais Patankar2020-03-181-8/+10
|
* Fix #1040: spotty webhook permission verificationQais Patankar2020-03-181-3/+7
|
* Ignore ConnectingEvent (slack) (#1041)Qais Patankar2020-03-181-1/+1
|
* Remove replace directives and use own fork to make go get work again (#1028)Wim2020-03-085-6/+6
| | | | See https://github.com/golang/go/issues/30354 go get doesn't honor the go.mod replace options.