summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
Commit message (Collapse)AuthorAgeFilesLines
* Preserve threading for messages with files (slack) (#1781)Alexander2022-03-301-4/+14
| | | | | | | * Preserve threading for slack messages with files * Update bridge/slack/slack.go Co-authored-by: Wim <wim@42.be>
* Add support for deleting files from slack to discord. Fixes #1705 (#1709)Wim2022-02-051-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | We create a new event EventFileDelete which will be used to delete specific uploaded files using the Extra["file"] in the config.Message. We also add a new NativeID key to the FileInfo struct which will contain the native file ID of the sending bridge. When a new file is added to the config.Message.Extra["file"] map, now the bridge native file ID should be added here. When the receiving bridge receives such a message, it should keep an internal mapping of NativeID <> bridge fileid/message id. In the case of discord we map it to the resulted discord message ID after uploading it. Now when a bridge deletes a file, it should send a EventFileDelete and setting the ID to the native file ID of the bridge. When the receiving bridge will get this event it'll look into the NativeID <> bridge id mapping to find their internal ID and use it to delete the specific file on their side. For now this is implemented for slack to discord but this will be add to other bridges where useful.
* Add space before file upload comment (slack) (#1554)Brian V2021-07-271-1/+1
|
* Add a MessageClipped option to set your own clipped message. Closes #1359 ↵Wim2021-05-271-1/+1
| | | | (#1487)
* Update vendor (#1461)Wim2021-05-051-1/+1
| | | | | * Update vendored libs * Fix slack api changes
* Refactor "msg-parent-not-found" to config.ParentIDNotFound (#1347)Qais Patankar2020-12-311-1/+1
|
* Do not use webhooks when token is configured (slack) (fixes #1123) (#1134)Wim2020-05-141-1/+1
|
* Clip too long messages on 3000 length (slack). Fixes #1081 (#1102)Wim2020-04-191-0/+2
|
* Use blocks not attachments (slack) (#1048)Qais Patankar2020-03-211-9/+13
| | | | 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
* Use upstream slack-go/slack again (#1018)Wim2020-03-011-1/+1
|
* Suppress unhandled HelloEvent message (slack) (#913)Qais Patankar2019-10-041-1/+2
|
* Fix regression in autojoining with legacy tokens (slack). Fixes #651 (#848)Wim2019-06-141-1/+15
|
* Refactor channel and user management (slack) (#766)Duco van Amstel2019-03-151-25/+13
|
* Force Slack link unfurling (#763)Duco van Amstel2019-03-121-1/+5
|
* Split-out Slack user and channel management (#762)Duco van Amstel2019-03-121-4/+4
|
* Add extra debug option (slack)Wim2019-02-221-1/+1
|
* Hint at thread replies when messages are unthreaded (slack) (#684)Wim2019-02-101-0/+6
|
* Add initial support for getting ChannelMember info of all bridges (#678)Wim2019-01-181-0/+8
| | | | | | | | | | | | | | * Add initial support for getting ChannelMember info of all bridges. Adds an EventGetChannelMembers event, which gets send every x time to all bridges. Bridges should respond on this event with a Message containing ChannelMembers in the EventGetChannelMembers key in the Extra field. handleEventGetChannelMembers will handle this Message and sets the contained ChannelMembers to the Bridge struct. * Add ChannelMembers support to the slack bridge
* Fix #668 strip lang in code fences sent to Slack (#673)Qais Patankar2019-01-041-0/+2
|
* Add wait option for populateUsers/Channels (slack) Fixes #579 (#653)Wim2018-12-151-1/+1
| | | | | When setting wait to true, we wait until the populating isn't in progress anymore. This is used on startup connections where we really need the initial information which could take a long time on big servers.
* Enable errcheck linter (#646)Duco van Amstel2018-12-081-10/+10
|
* Make slack-legacy change less restrictive (#626)Wim2018-12-021-8/+3
|
* Update nlopes/slack to 4.1-dev (#595)Patrick Connolly2018-12-011-14/+24
|
* Sync channel topics between Slack bridges (#585)Patrick Connolly2018-11-261-1/+50
| | | Added logic to allow for configurable synchronisation of topics and purposes of channels between Slack bridges.
* Merge pull request #606 from 42wim/fix-590Wim2018-11-251-4/+13
|\
| * Make sure threaded files stay in thread (slack). Fixes #590Wim2018-11-251-4/+9
| |
| * Do not post empty messages (slack). Fixes #574Wim2018-11-251-0/+4
| |
* | Handle deleted/edited thread starting messages (slack). Fixes #600 (#605)Wim2018-11-251-0/+1
|/
* Add protocol to msg.ID in cache (#596)Wim2018-11-191-10/+4
|
* Add links to slack bot and legacy config in error message (slack)Wim2018-11-181-0/+3
|
* Fix golint linter issues and enable it in CI (#593)Duco van Amstel2018-11-151-4/+4
|
* Fix file caching issue (slack). #572 (#575)Patrick Connolly2018-11-141-6/+2
|
* Add new Slack connection and forked legacy Slack bridge (#582)Duco van Amstel2018-11-131-45/+41
|
* Restore file comments coming from Slack (#583)Duco van Amstel2018-11-121-9/+16
|
* Add more rate-limit handling (slack) (#581)Duco van Amstel2018-11-101-30/+70
|
* Make scopelint happyWim2018-11-081-0/+1
|
* Make gocritic linter happierWim2018-11-081-3/+4
|
* Add ability to show when user is typing across Slack bridges (#559)Patrick Connolly2018-11-081-1/+10
|
* Refactor and clean-up handlers. (slack) (#533)Duco van Amstel2018-11-071-1/+38
|
* Clean up various stuff (#508)David Hill2018-11-071-6/+14
| | | * various cleanups
* Do not join Slack channel without API access (slack) (#563)Duco van Amstel2018-11-071-0/+5
|
* Preserve threading between Slack instances (#529)Patrick Connolly2018-11-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | * Opportunistically preserve Slack threading when parent thread in cache. [#529] * Removed slack-specific processing from gateway. * Added docs. * Add option to enable threading, with default to off. * Did cleanup on @42wim's comments. * Update gateway/gateway.go Co-Authored-By: patcon <patrick.c.connolly@gmail.com> * Suggestion from @42wim :) * Suggestions from @42wim. * More suggestions.
* Clean up message send logic (slack). (#531)Duco van Amstel2018-10-221-87/+94
|
* Clean up user and channel information management (slack) (#521)Duco van Amstel2018-10-161-39/+37
|
* Clean up code and strengthening (slack) (#519)Duco van Amstel2018-10-131-78/+136
| | | | | | | | | | | | | Changes include: - Refactor of strings into package-wide constants. - Predeclaration of regexps to be instantiated at package load time. - Checking of unchecked errors. - Structural changes: - Adding verifications to type-casting code. - Remove unnecessary 'len(X) > 0' checks before iterating over X. - Remove unnecessary 'else' clause after 'if' with 'return'. - Unexporting of public fields of Bridge struct. - Formatting: - One-field-per-line struct definitions.
* Refactor slack bridge prelude (#517)Duco van Amstel2018-10-121-447/+0
| | | | | Distributing the source of the Slack bridge across multiple files to increase readability and as a prelude to various refactors and clean-ups.
* Get up to 1000 channels and private/mp/im channels (slack). Related to #489Wim2018-08-281-1/+1
|
* Add caching to fix issue with slack API changes (slack). #481Wim2018-08-181-3/+36
|
* Fix slack file/image downloads after api changes (slack)Wim2018-08-101-15/+12
|