summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost
Commit message (Collapse)AuthorAgeFilesLines
* Skip events for webhookWim2018-02-271-0/+5
|
* Refactor mattermostWim2018-02-271-176/+206
|
* Make matterclient work with prefixed logWim2018-02-211-0/+3
|
* Use prefixed-formatter for better loggingWim2018-02-211-1/+1
|
* Move Sirupsen => sirupsenWim2018-02-201-1/+1
|
* Download (and upload) avatar images from mattermost and telegram when ↵Wim2018-02-201-2/+45
| | | | | | | | | | | | | | mediaserver is configured. Closes #362 An extra avatarMap (cache) is created for mattermost and telegram. If MediaServerUpload is configured, the avatar images of users are downloaded the first time a user sends a message. If this download succeeds a message with EVENT_AVATAR_DOWNLOAD is sent to the originating protocol. This message also contains a SHA field (in msg.Extra["file"]), if this is not empty, the sha will be added to the avatarMap. (so we now have a userid-sha cache) Next time this user sends a message, the MediaServerUpload/sha/userid.png URL will be used as the avatar field.
* Send chat notification if media is too big to be re-uploaded to MediaServer. ↵Wim2018-02-031-0/+12
| | | | See #359
* Download files and reupload to supported bridges (mattermost). Closes #357Wim2018-02-021-2/+18
|
* Add URL to message in webhook if available (mattermost). See #356Wim2018-01-311-1/+12
|
* Fix regression in mattermost bridge (mattermost). Closes #327Wim2018-01-011-4/+1
|
* Refactor and add MediaDownloadSize to GeneralWim2017-12-191-5/+3
|
* Add support for comments from slack file uploads (slack)Wim2017-11-131-2/+2
|
* Fix loop, make megacheck happyWim2017-09-211-11/+16
|
* Download files from slack and reupload to mattermost (slack/mattermost). ↵Wim2017-09-211-3/+18
| | | | | | | | | | | | Closes #255 Refactor message.Extra to a map[string][]interface{} to have a bit more flexibility for stuffing extra stuff. For attached files from slack, files < 1MB size get downloaded (in memory), and get put into Extra["file"][]config.FileInfo (containing a pointer to the buffer and the filename). This is not async so slack channels with lots of attached files may suffer a slowdown. (the download timeout is set at 5 seconds).
* Fix loop from webhook by adding matterbridge prop (mattermost). Closes #261Wim2017-09-181-0/+7
|
* Relay attachments from mattermost to slack (slack). Closes #260Wim2017-09-181-2/+8
|
* Use override username if specified (mattermost). #260Wim2017-09-181-0/+6
|
* Add support for deleting messages across bridges.Wim2017-09-111-2/+12
| | | | | | | | | | | | Currently fully support mattermost,slack and discord. Message deleted on the bridge or received from other bridges will be deleted. Partially support for Gitter. Gitter bridge will delete messages received from other bridges. But if you delete a message on gitter, this deletion will not be sent to other bridges (this is a gitter API limitation, it doesn't propogate edits or deletes via the API)
* Send images when text is empty regression. (mattermost). Closes #254Wim2017-09-081-0/+1
|
* Fix private channel joining bug (mattermost). Closes #248Wim2017-08-301-1/+6
|
* Add support for editing messages across bridges. Currently mattermost/discord.Wim2017-08-281-3/+7
| | | | | | | | | | | | | | | | | | | | | | Our Message type has an extra ID field which contains the message ID of the specific bridge. The Send() function has been modified to return a msg ID (after the message to that specific bridge has been created). There is a lru cache of 5000 entries (message IDs). All in memory, so editing messages will only work for messages the bot has seen. Currently we go out from the idea that every message ID is unique, so we don't keep the ID separate for each bridge. (we do for each gateway though) If there's a new message from a bridge, we put that message ID in the LRU cache as key and the []*BrMsgID as value (this slice contains the message ID's of each bridge that received the new message) If there's a new message and this message ID already exists in the cache, it must be an updated message. The value from the cache gets checked for each bridge and if there is a message ID for this bridge, the ID will be added to the Message{} sent to that bridge. If the bridge sees that the ID isn't empty, it'll know it has to update the message with that specific ID instead of creating a new message.
* Modify Send() to return also a message idWim2017-08-271-4/+4
|
* Add support for personal access tokens (mattermost)Wim2017-08-231-5/+34
| | | | * https://docs.mattermost.com/developer/personal-access-tokens.html
* Allow a webhookurl per channel (discord). #239Wim2017-08-121-2/+2
|
* Add action support for slack,mattermost,irc,gitter,matrix,xmpp,discord. #199Wim2017-07-301-1/+18
|
* Ignore edited messages with reactions (mattermost)Wim2017-07-251-0/+4
|
* Fix webhookurl/webhookbindaddress panic (mattermost). Closes #221Wim2017-07-171-0/+3
|
* Use GetFileLinks. Also show links to non-public files (mattermost)Wim2017-07-151-1/+1
|
* Refactor connecting logic slack/mattermost. Fixes #216Wim2017-07-151-22/+56
|
* Fix megacheck / go vet issuesWim2017-07-141-4/+2
|
* Deprecate URL,useAPI,BindAddress (slack,mattermost,rocketchat)v0.16.0-rc1Wim2017-06-291-10/+17
|
* Add UserID to each message. Closes #200Wim2017-06-181-1/+4
|
* Fix incorrect behaviour of EditDisable (mattermost). Fixes #197Wim2017-06-151-0/+3
|
* Add support for edited messages (mattermost)Wim2017-04-151-1/+5
|
* Modify iconurl correctly (mattermost). Closes #145Wim2017-04-081-0/+1
|
* Reconnect on session removal (mattermost)Wim2017-04-071-0/+1
|
* Add support for showing/hiding join/leave messages from mattermost. Closes #147Wim2017-04-071-0/+8
|
* Remove space after nick (mattermost). Closes #142Wim2017-04-011-6/+1
|
* Refactor to handle disconnects/reconnects better.Wim2017-02-141-0/+4
| | | | Now try to reconnect every 60 seconds until forever.
* Update public links to new API (mattermost)Wim2016-11-261-2/+2
|
* Merge branch 'refactor'Wim2016-11-131-29/+10
|\
| * RefactorWim2016-11-131-29/+10
| |
* | Sync with mattermost 3.5.0Wim2016-11-121-1/+1
|/
* Add support for dynamic IconURL (slack). Closes #43Wim2016-11-051-4/+4
|
* Fix teamid bug (mattermost)Wim2016-10-291-1/+1
|
* Launch every account only once. Fixes #48Wim2016-10-231-4/+1
|
* Drop messages not from our mattermost team. Fixes #49Wim2016-10-231-1/+4
|
* Fix mattermost bridge channel joinWim2016-09-301-1/+1
|
* Remove newline splitting from outgoing mattermost messages. Should be ↵Wim2016-09-291-6/+2
| | | | handled by receiving bridge.
* Add support for mattermost attachments. Shows public link on bridges. Closes #32Wim2016-09-201-0/+5
|