Commit Graph

153 Commits (278a3c68905605da73435f4173cca655b46721e4)

Author SHA1 Message Date
Wim 5619a75b05
Fix regression in autojoining with legacy tokens (slack). Fixes #651 (#848) 5 years ago
Wim 65781b9316
Disable user lookups on delete messages (slack) (#812) 5 years ago
Duco van Amstel 9be0be0316 Add lacking clean-up in Slack synchronisation (#811) 5 years ago
Wim 64b57f2da3
Ignore message_replied and hidden messages (slack). Fixes #709 (#779) 5 years ago
David Hill 97f9d4be67 Fix double unlock (slack) (#771) 6 years ago
Duco van Amstel 8b754017ca Fix race-condition in populateUser() (#767)
Fix the root-cause of #759 by introducing synchronisation points for
individual user fetches.
6 years ago
Wim a27600046e
Fix regression for legacy slack by #766 (#768) 6 years ago
Duco van Amstel fb2667631d Refactor channel and user management (slack) (#766) 6 years ago
Duco van Amstel b638f7037a Force Slack link unfurling (#763) 6 years ago
Duco van Amstel 74699a8262 Split-out Slack user and channel management (#762) 6 years ago
Wim bf21604d42
Make all loggers derive from non-default instance (#728) 6 years ago
Wim 1f1634ea59 Add extra debug option (slack) 6 years ago
Wim 077b818d82 Add extra debug of SubMessage to empty messages error (slack). #709 6 years ago
Wim 57f156be83
Hint at thread replies when messages are unthreaded (slack) (#684) 6 years ago
Wim 4ae028fe73 Optimize handling of very large slack teams. Fixes #695
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 fb713ed91b for now.
ChannelMembers will not be filled.
6 years ago
Wim fb713ed91b
Add initial support for getting ChannelMember info of all bridges (#678)
* 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
6 years ago
Qais Patankar 8522d8f29c Fix #668 strip lang in code fences sent to Slack (#673) 6 years ago
Wim c585d00f16 Ignore LatencyReport event (slack) 6 years ago
Jerry Heiselman d82726cd1b Try downloading files again if slack is too slow (slack). Closes #655 (#656) 6 years ago
Wim 53c86702a3
Add wait option for populateUsers/Channels (slack) Fixes #579 (#653)
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.
6 years ago
David Hill 192fe89789 Populate user on channel join (slack) (#644) 6 years ago
Wim 959ca3cef3 Fix bot (legacy token) messages not being send. Closes #571 6 years ago
Wim d887855e16 Add bot debug info (slack) 6 years ago
Duco van Amstel a2754f15fc Enable errcheck linter (#646) 6 years ago
Wim 859ebad55d
Make slack-legacy change less restrictive (#626) 6 years ago
Patrick Connolly e538a4d304 Update nlopes/slack to 4.1-dev (#595) 6 years ago
Patrick Connolly fc5e3a6728 Create getChannelsByX functions to make codeclimate happy (slack) (#610) 6 years ago
Patrick Connolly f5659d455d Sync channel topics between Slack bridges (#585)
Added logic to allow for configurable synchronisation of topics and purposes of channels between Slack bridges.
6 years ago
Wim f716b8fc0f
Merge pull request #606 from 42wim/fix-590 6 years ago
Wim f00d4d7d3f Make sure threaded files stay in thread (slack). Fixes #590 6 years ago
Wim 0929535b2e Do not post empty messages (slack). Fixes #574 6 years ago
Wim 8869e253ca Handle deleted/edited thread starting messages (slack). Fixes #600 (#605) 6 years ago
Wim ae32bae791
Add protocol to msg.ID in cache (#596) 6 years ago
Wim 32f57b7c26 Add links to slack bot and legacy config in error message (slack) 6 years ago
Duco van Amstel ce21ba1545 Fix golint linter issues and enable it in CI (#593) 6 years ago
Patrick Connolly 4254ed3c63 Fix regression in skip logic (slack). (#592) 6 years ago
Patrick Connolly 09713d40ba Fix file caching issue (slack). #572 (#575) 6 years ago
Duco van Amstel e19ba5a06a Add new Slack connection and forked legacy Slack bridge (#582) 6 years ago
Duco van Amstel e9419f10d3 Restore file comments coming from Slack (#583) 6 years ago
Duco van Amstel 2f042ad915 Add more rate-limit handling (slack) (#581) 6 years ago
Wim 78401214b0 Make scopelint happy 6 years ago
Wim 1e0bb3da95 Make gocritic linter happier 6 years ago
Wim 59994da176 Act only on UserTypingEvents when enabled 6 years ago
Patrick Connolly 3d281b3316 Add ability to show when user is typing across Slack bridges (#559) 6 years ago
Duco van Amstel ea86849a58 Fix Slack edit usernames (#570) 6 years ago
Duco van Amstel d2a1dc792f Refactor and clean-up handlers. (slack) (#533) 6 years ago
David Hill 0e2522279e Clean up various stuff (#508)
* various cleanups
6 years ago
Duco van Amstel a1bf37e457 Do not join Slack channel without API access (slack) (#563) 6 years ago
Patrick Connolly a20b7895a9 Preserve threading between Slack instances (#529)
* 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.
6 years ago
Duco van Amstel 1269be1d04 Prevent Slack API rate-limit overflow (#539) 6 years ago