Commit Graph

629 Commits (2b7eab629d959b10388d21cf6242fdfbdbe0e197)

Author SHA1 Message Date
Qais Patankar af0acf0dae
Strip extra info from emotes (discord) (#1052) 5 years ago
Qais Patankar 802c80f40c Update vendor yaegashi/msgraph.go to v0.1.2 (1) 5 years ago
Wim 281016a501
Fix duplicate separator on empty description/url (discord). Fixes #1008 (#1035)
Make this work for all possible cases.
Add tests
5 years ago
Qais Patankar d4acdf2f89
Use blocks not attachments (slack) (#1048)
This removes the extra space below messages, as shown in
https://user-images.githubusercontent.com/923242/77235190-a3359980-6bab-11ea-8b7b-697d730ae5c1.png
5 years ago
Qais Patankar 0951e75c85
Fix #1039: messages sent to Slack being synced back (#1046)
This is a regression from https://github.com/42wim/matterbridge/pull/581#issuecomment-562937576

Behaves the same as 95190f11bf
5 years ago
Jakub 6b017b226a
Support JSON and YAML config formats (#1045)
Signed-off-by: Jakub Sokołowski <jakub@status.im>
5 years ago
Qais Patankar 9e3bd7398c
Fix #1027: warning when handling inbound webhooks (discord) (#1044) 5 years ago
Qais Patankar 79f764c7a8 Refactor webhook permission checks 5 years ago
Qais Patankar b5dc4353fb Fix #1040: spotty webhook permission verification 5 years ago
Qais Patankar 2fbac73c29
Ignore ConnectingEvent (slack) (#1041) 5 years ago
Wim 9785edd263
Remove replace directives and use own fork to make go get work again (#1028)
See https://github.com/golang/go/issues/30354
go get doesn't honor the go.mod replace options.
5 years ago
Wim 3f06a40bd5 Support code snippets from msteams 5 years ago
Wim 68f43985ad Add scopes again 5 years ago
Wim 915ca8f817 Make linter happy and cleanup (msteams) 5 years ago
Wim a65a81610b Support threading from other bridges to msteams 5 years ago
Wim 8eb6ed5639 Support receiving attachments from msteams 5 years ago
Wim 795a8705c3 Add initial Microsoft Teams support
Documentation on https://github.com/42wim/matterbridge/wiki/MS-Teams-setup
5 years ago
Wim 250b3bb579
Use upstream slack-go/slack again (#1018) 5 years ago
Wim e343db6f72
Make avatars download work with mediaserverdownload (telegram). Fixes #920 (#1012) 5 years ago
Wim 54ed6320c2 Add support for avatars from matrix. #984 (#1007) 5 years ago
Wim 1985873494 Implement basic reconnect (whatsapp). Fixes #987 (#1003) 5 years ago
Qais Patankar 8ae5917659
Be less lossy when throttling IRC messages (#1004)
Note that msg.Text and chucking it through a chan is OK: https://play.golang.org/p/MTfT3YSsgPX
5 years ago
Qais Patankar c91bfd08d8 Add ability to procure avatars from the destination bridge (#1000)
* remote_avatar: add UseLocalAvatar

* remote_avatar: make sure msg.Protocol is always set correctly

* remote_avatars: support msg.Account

* remote_avatar: add to matterbridge.toml.sample

* remote_avatar: clarify something
5 years ago
Wim c01c8edeb8 Fix go-keybase-chat-bot api changes 5 years ago
Qais Patankar 1420f68050 Check only bridged channels for PermManageWebhooks (discord) (#1001)
* Check only bridged channels for PermManageWebhooks

* add note
5 years ago
Martijn Braam c0be3e585a
Enable intra-word emphasis supression in markdown (#999)
This fixes plain links sent to Matrix being broken if they contain
underscores. Fixes issue #997
5 years ago
Wim 1bf46b7711
Fix duplicated messages (sshchat). Fixes #950 (#996) 5 years ago
Wim b85bae31d9
Show file comment in webhook if normal message is empty (discord). Fixes #962 (#995) 5 years ago
Wim f8ad877601
Add DisableWebPagePreview option (telegram). Closes #980 (#994) 5 years ago
Wim 585d1556c1
Disable smartypants in markdown parser. Fixes #989, #983 (#993) 5 years ago
Wim 7486555875
Fail with message instead of panic. #988 (#991) 5 years ago
Humorhenker fc30b1bacc
Add QuoteLengthLimit option (telegram) fixes #963 (#985)
* QuoteLengthLimit option added to limit max. quoted message length if QuoteLengthLimit = 0 the whole message will be quoted
5 years ago
Wim 4c44515f9d
Fix channel ID problem with multiple gateways (discord). Fixes #953 (#977) 5 years ago
Guillaume Lazzara c9d5f4c898 Add support for WhatsApp media (jpeg/png/gif) bridging (#974)
* Whatsapp image bridging

* Prevent double message in telegram when media with caption received

Co-authored-by: imShara <shara@protonmail.com>
5 years ago
c0ncord2 810c150781 move stripCustomoji logic to default Tengo script (#973)
*  move stripCustomoji logic to default Tengo script 

Removing the image ID from the message (without any possibility of recovering it later) is a loss of valuable data that prevents users from giving support to custom emoji via Tengo scripts.

* bugfix - do send colors to other irc bridges

"if we're not sending to an irc bridge we strip the IRC colors"

Co-authored-by: c0ncord <59654954+c0ncord@users.noreply.github.com>
5 years ago
Wim 1f830963f6
Return when we have only WebhookURL (mattermost). Fixes #954 (#960) 5 years ago
Benjamin 0917dc8766 Update markdown parsing library to github.com/gomarkdown/markdown (#944) 5 years ago
Gonçalo Ribeiro c394de0c88 Add support for receiving attachments (keybase) (#923) 5 years ago
Wim 0bc159341d
Update vendor (#932)
* Update vendor

* Fix godiscord api change
5 years ago
Wim 45bf1fd63a
Convert slack bold/strike to correct markdown (slack). Fixes #918 (#930) 5 years ago
Wim ff0de85817
Remove obsolete file upload links (discord). Fixes #908 (#931)
Since v1.16.0 we now can upload files via webhook.
Old way of showing files with webhook only setup can be removed.
5 years ago
Wim 727fa9f929
Add support for uploading application/x and audio/x (matrix). Fixes #925 (#929) 5 years ago
Wim 00967a98ac
Fix panic on WebhookURL only setting (mattermost). Closes #916 (#917) 5 years ago
Qais Patankar 1d708ab351 Suppress unhandled HelloEvent message (slack) (#913) 5 years ago
Qais Patankar ba6759010b Add UserTypingSupport (discord) (#914)
* Add Discord to UserTypingSupport

* discord: start typing in a channel on EventUserTyping receive

* discord: emit EventUserTyping to gateway
5 years ago
Wim 0abf4d5d5d
Specify correct GuildID on unknown user query (discord). Fixes #879 (#894) 5 years ago
Michal Suchánek 9b320cd43f Add token support (RocketChat) (#892)
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
5 years ago
Wim 28783a4146
Do configuration validation on start-up. Fixes #888 (#889)
Fail if:
* we don't have any gateways configured
* we have gateways configured but with non-existing bridge configuration
* we have gateways configured without any configuration
5 years ago
Wim a3bee01e0a
Update dependencies (#886) 5 years ago
Wim 3562d4220c
Bail if incorrect Jid (xmpp). Fixes #869 (#883) 5 years ago