summaryrefslogtreecommitdiffstats
path: root/bridge/slack/handlers.go
Commit message (Collapse)AuthorAgeFilesLines
* 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.