summaryrefslogtreecommitdiffstats
path: root/bridge/slack/handlers.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix error messages in telegram and slack bridges (#1862)Alexander2022-09-051-1/+1
| | | | | | | * Fix message html entities escaping when sending to Telegram * Fix error messages in telegram and slack bridges Co-authored-by: Wim <wim@42.be>
* Improve Slack attachments formatting (slack) (#1807)Andy2022-05-091-2/+12
| | | | | | | | * Improve Slack attachments formatting (slack) * Add TitleLink * Add Footer * Fix linter issues
* Add support for deleting files from slack to discord. Fixes #1705 (#1709)Wim2022-02-051-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Invalidate user in cache on user change event (#1604)Jonathan Walker (Keenan)2021-10-161-0/+2
| | | Co-authored-by: Wim <wim@42.be>
* Do not use webhooks when token is configured (slack) (fixes #1123) (#1134)Wim2020-05-141-1/+1
|
* Prevent image/message looping (slack). Fixes #1088 (#1096)Wim2020-04-181-6/+10
| | | Also check for our matterbridge ID in Blocks set in SubMessages.
* Don't transmit typing events from ourselves (slack/discord) (#1056)Qais Patankar2020-03-221-1/+10
|
* Use blocks not attachments (slack) (#1048)Qais Patankar2020-03-211-2/+8
| | | | This removes the extra space below messages, as shown in https://user-images.githubusercontent.com/923242/77235190-a3359980-6bab-11ea-8b7b-697d730ae5c1.png
* Ignore ConnectingEvent (slack) (#1041)Qais Patankar2020-03-181-1/+1
|
* Use upstream slack-go/slack again (#1018)Wim2020-03-011-1/+1
|
* Convert slack bold/strike to correct markdown (slack). Fixes #918 (#930)Wim2019-10-271-0/+1
|
* Suppress unhandled HelloEvent message (slack) (#913)Qais Patankar2019-10-041-2/+2
|
* Disable user lookups on delete messages (slack) (#812)Wim2019-04-231-11/+11
|
* Ignore message_replied and hidden messages (slack). Fixes #709 (#779)Wim2019-03-271-6/+12
|
* Refactor channel and user management (slack) (#766)Duco van Amstel2019-03-151-40/+8
|
* Add extra debug of SubMessage to empty messages error (slack). #709Wim2019-02-151-0/+3
|
* Optimize handling of very large slack teams. Fixes #695Wim2019-01-301-3/+0
| | | | | | | | | | Stop getting users if we reach 2000 users. Slack will rate-limit us even if we follow their limits. This means that we now have to lookup every user that says a message for the first time. This should be less intensive on the API. This also disables partly fb713ed91bfb48c0037e489f80be85c54e69953a for now. ChannelMembers will not be filled.
* Add initial support for getting ChannelMember info of all bridges (#678)Wim2019-01-181-0/+52
| | | | | | | | | | | | | | * 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
* Ignore LatencyReport event (slack)Wim2019-01-021-0/+2
|
* Try downloading files again if slack is too slow (slack). Closes #655 (#656)Jerry Heiselman2018-12-191-2/+8
|
* Add wait option for populateUsers/Channels (slack) Fixes #579 (#653)Wim2018-12-151-5/+5
| | | | | 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.
* Populate user on channel join (slack) (#644)David Hill2018-12-151-0/+3
|
* Sync channel topics between Slack bridges (#585)Patrick Connolly2018-11-261-1/+6
| | | Added logic to allow for configurable synchronisation of topics and purposes of channels between Slack bridges.
* Handle deleted/edited thread starting messages (slack). Fixes #600 (#605)Wim2018-11-251-0/+7
|
* Add protocol to msg.ID in cache (#596)Wim2018-11-191-1/+1
|
* Fix golint linter issues and enable it in CI (#593)Duco van Amstel2018-11-151-7/+7
|
* Fix regression in skip logic (slack). (#592)Patrick Connolly2018-11-151-1/+6
|
* Fix file caching issue (slack). #572 (#575)Patrick Connolly2018-11-141-7/+22
|
* Restore file comments coming from Slack (#583)Duco van Amstel2018-11-121-20/+9
|
* Make scopelint happyWim2018-11-081-0/+1
|
* Act only on UserTypingEvents when enabledWim2018-11-081-0/+3
|
* Add ability to show when user is typing across Slack bridges (#559)Patrick Connolly2018-11-081-1/+29
|
* Fix Slack edit usernames (#570)Duco van Amstel2018-11-081-10/+0
|
* Refactor and clean-up handlers. (slack) (#533)Duco van Amstel2018-11-071-193/+128
|
* Clean up various stuff (#508)David Hill2018-11-071-6/+5
| | | * various cleanups
* Preserve threading between Slack instances (#529)Patrick Connolly2018-11-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | * 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 user and channel information management (slack) (#521)Duco van Amstel2018-10-161-20/+4
|
* Clean up code and strengthening (slack) (#519)Duco van Amstel2018-10-131-56/+72
| | | | | | | | | | | | | 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-0/+337
Distributing the source of the Slack bridge across multiple files to increase readability and as a prelude to various refactors and clean-ups.