3
0
mirror of https://github.com/42wim/matterbridge.git synced 2024-12-22 11:12:44 +01:00
Commit Graph

167 Commits

Author SHA1 Message Date
Brian V
13bbeeaceb
Add space before file upload comment (slack) () 2021-07-27 17:52:30 +01:00
Wim
c86137449e
Add a MessageClipped option to set your own clipped message. Closes () 2021-05-27 21:45:23 +02:00
Wim
a0bca42a7a
Update vendor ()
* Update vendored libs

* Fix slack api changes
2021-05-05 22:03:28 +02:00
Qais Patankar
a9d8ac8bc0
Refactor "msg-parent-not-found" to config.ParentIDNotFound () 2020-12-31 18:01:57 +00:00
Wim
c9cfa59f54
Do not use webhooks when token is configured (slack) (fixes ) () 2020-05-14 00:27:34 +02:00
Wim
e564c555d7
Clip too long messages on 3000 length (slack). Fixes () 2020-04-19 17:00:11 +02:00
Wim
57794b3b9f
Prevent image/message looping (slack). Fixes ()
Also check for our matterbridge ID in Blocks set in SubMessages.
2020-04-18 22:30:49 +02:00
Qais Patankar
98033b1ba7
Don't transmit typing events from ourselves (slack/discord) () 2020-03-22 18:39:11 +01:00
Qais Patankar
d4acdf2f89
Use blocks not attachments (slack) ()
This removes the extra space below messages, as shown in
https://user-images.githubusercontent.com/923242/77235190-a3359980-6bab-11ea-8b7b-697d730ae5c1.png
2020-03-21 21:03:12 +01:00
Qais Patankar
0951e75c85
Fix : messages sent to Slack being synced back ()
This is a regression from https://github.com/42wim/matterbridge/pull/581#issuecomment-562937576

Behaves the same as 95190f11bf
2020-03-21 20:12:30 +01:00
Qais Patankar
2fbac73c29
Ignore ConnectingEvent (slack) () 2020-03-18 23:03:20 +01:00
Wim
250b3bb579
Use upstream slack-go/slack again () 2020-03-01 20:59:19 +01:00
Wim
45bf1fd63a
Convert slack bold/strike to correct markdown (slack). Fixes () 2019-10-27 01:10:59 +02:00
Qais Patankar
1d708ab351 Suppress unhandled HelloEvent message (slack) () 2019-10-04 00:19:50 +02:00
Wim
5619a75b05
Fix regression in autojoining with legacy tokens (slack). Fixes () 2019-06-14 00:42:55 +02:00
Wim
65781b9316
Disable user lookups on delete messages (slack) () 2019-04-23 23:29:15 +02:00
Duco van Amstel
9be0be0316 Add lacking clean-up in Slack synchronisation () 2019-04-23 23:08:34 +02:00
Wim
64b57f2da3
Ignore message_replied and hidden messages (slack). Fixes () 2019-03-27 22:54:18 +01:00
David Hill
97f9d4be67 Fix double unlock (slack) () 2019-03-21 17:30:28 +01:00
Duco van Amstel
8b754017ca Fix race-condition in populateUser() ()
Fix the root-cause of  by introducing synchronisation points for
individual user fetches.
2019-03-20 22:54:31 +01:00
Wim
a27600046e
Fix regression for legacy slack by () 2019-03-20 22:52:23 +01:00
Duco van Amstel
fb2667631d Refactor channel and user management (slack) () 2019-03-15 21:23:09 +01:00
Duco van Amstel
b638f7037a Force Slack link unfurling () 2019-03-12 22:56:43 +01:00
Duco van Amstel
74699a8262 Split-out Slack user and channel management () 2019-03-12 22:52:36 +01:00
Wim
bf21604d42
Make all loggers derive from non-default instance () 2019-02-23 22:51:27 +01:00
Wim
1f1634ea59 Add extra debug option (slack) 2019-02-22 19:36:50 +01:00
Wim
077b818d82 Add extra debug of SubMessage to empty messages error (slack). 2019-02-15 18:05:10 +01:00
Wim
57f156be83
Hint at thread replies when messages are unthreaded (slack) () 2019-02-10 17:23:50 +01:00
Wim
4ae028fe73 Optimize handling of very large slack teams. Fixes
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.
2019-01-30 23:28:37 +01:00
Wim
fb713ed91b
Add initial support for getting ChannelMember info of all bridges ()
* 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
2019-01-18 18:35:31 +01:00
Qais Patankar
8522d8f29c Fix strip lang in code fences sent to Slack () 2019-01-04 20:32:58 +01:00
Wim
c585d00f16 Ignore LatencyReport event (slack) 2019-01-02 23:55:00 +01:00
Jerry Heiselman
d82726cd1b Try downloading files again if slack is too slow (slack). Closes () 2018-12-19 22:01:05 +01:00
Wim
53c86702a3
Add wait option for populateUsers/Channels (slack) Fixes ()
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.
2018-12-15 23:11:03 +01:00
David Hill
192fe89789 Populate user on channel join (slack) () 2018-12-15 22:57:54 +01:00
Wim
959ca3cef3 Fix bot (legacy token) messages not being send. Closes 2018-12-13 20:49:14 +01:00
Wim
d887855e16 Add bot debug info (slack) 2018-12-12 00:27:55 +01:00
Duco van Amstel
a2754f15fc Enable errcheck linter () 2018-12-08 17:04:10 +01:00
Wim
859ebad55d
Make slack-legacy change less restrictive () 2018-12-02 23:09:21 +01:00
Patrick Connolly
e538a4d304 Update nlopes/slack to 4.1-dev () 2018-12-01 19:55:35 +01:00
Patrick Connolly
fc5e3a6728 Create getChannelsByX functions to make codeclimate happy (slack) () 2018-11-28 11:04:26 +01:00
Patrick Connolly
f5659d455d Sync channel topics between Slack bridges ()
Added logic to allow for configurable synchronisation of topics and purposes of channels between Slack bridges.
2018-11-26 09:47:04 +00:00
Wim
f716b8fc0f
Merge pull request from 42wim/fix-590 2018-11-25 20:40:22 +01:00
Wim
f00d4d7d3f Make sure threaded files stay in thread (slack). Fixes 2018-11-25 19:27:45 +01:00
Wim
0929535b2e Do not post empty messages (slack). Fixes 2018-11-25 19:26:47 +01:00
Wim
8869e253ca Handle deleted/edited thread starting messages (slack). Fixes () 2018-11-25 10:08:57 +00:00
Wim
ae32bae791
Add protocol to msg.ID in cache () 2018-11-19 21:28:23 +01:00
Wim
32f57b7c26 Add links to slack bot and legacy config in error message (slack) 2018-11-18 17:14:47 +01:00
Duco van Amstel
ce21ba1545 Fix golint linter issues and enable it in CI () 2018-11-15 20:43:43 +01:00
Patrick Connolly
4254ed3c63 Fix regression in skip logic (slack). () 2018-11-15 19:23:46 +01:00