Commit Graph

152 Commits

Author SHA1 Message Date
Duco van Amstel 70247e0b64 Update call with attached method 2018-11-26 09:21:20 +00:00
Duco van Amstel 8441076784 Update tests with attached method 2018-11-26 09:20:23 +00:00
Duco van Amstel d122bc8f9a Attach extraction method to bridge struct 2018-11-26 09:19:45 +00:00
Duco van Amstel 4837dacf3d Fix extra quote 2018-11-26 09:07:16 +00:00
Duco van Amstel b28c22ce46 Add a log message to Slack topic extraction 2018-11-26 08:59:49 +00:00
Patrick Connolly 497deff0b0 Made gofmt happy. 2018-11-26 12:59:01 +08:00
Patrick Connolly e1cf1ee06d Review: Use assert.Equalf 2018-11-26 12:39:46 +08:00
Patrick Connolly db6093b646 Review: Added names to testcases and cleaned up. 2018-11-26 12:34:58 +08:00
Patrick Connolly adb02771c6 Made gofmt happy. 2018-11-26 12:19:46 +08:00
Patrick Connolly bc0d0efe66 Properly return when unexpected topic/purpose message format. 2018-11-26 12:19:46 +08:00
Patrick Connolly 31e2edf089 Review: Using testify. Renamed var. 2018-11-26 12:19:46 +08:00
Patrick Connolly 2a47b8fd40 Small fixup. 2018-11-26 12:19:46 +08:00
Patrick Connolly 608f5285ce Nit. 2018-11-26 12:19:46 +08:00
Patrick Connolly c8af8b9533 Comment fixups. 2018-11-26 12:19:46 +08:00
Patrick Connolly 3e0ec080ca Removed named return. 2018-11-26 12:19:46 +08:00
Patrick Connolly 732a0d68fb Removed named return. 2018-11-26 12:19:46 +08:00
Patrick Connolly 762aa3a41c Added my first golang test. Moved func out of interface value for easier testing. 2018-11-26 12:19:46 +08:00
Patrick Connolly 5605032873 Moved topic/purpose processing logic to slack handler. 2018-11-26 12:19:46 +08:00
Patrick Connolly 371ea0d733 Added ability to handle cleared topics/purposes. 2018-11-26 12:19:46 +08:00
Duco van Amstel 578e2b6ae8 Update bridge/slack/slack.go
Co-Authored-By: patcon <patrick.c.connolly@gmail.com>
2018-11-26 12:19:46 +08:00
Duco van Amstel f21b539fbf Update bridge/slack/slack.go
Co-Authored-By: patcon <patrick.c.connolly@gmail.com>
2018-11-26 12:19:46 +08:00
Patrick Connolly 009aa60264 Renamed flag to SyncTopic. 2018-11-26 12:19:46 +08:00
Patrick Connolly 95cf8c11d5 Moved channel topic/purpose update into new function. 2018-11-26 12:19:46 +08:00
Patrick Connolly 6d0dcdb718 Made go fmt happy. 2018-11-26 12:19:46 +08:00
Patrick Connolly 2e3d90ef64 Moved nosync message drop into gateway logic. 2018-11-26 12:19:45 +08:00
Patrick Connolly fa2e31ce51 Added feature to sync channel topic/purpose between Slack bridges. [#585] 2018-11-26 12:19:45 +08:00
Patrick Connolly 0c382b081d Documented return value of handleStatusEvent. 2018-11-26 12:19:45 +08:00
Wim f716b8fc0f Merge pull request #606 from 42wim/fix-590 2018-11-25 20:40:22 +01:00
Wim f00d4d7d3f Make sure threaded files stay in thread (slack). Fixes #590 2018-11-25 19:27:45 +01:00
Wim 0929535b2e Do not post empty messages (slack). Fixes #574 2018-11-25 19:26:47 +01:00
Wim 8869e253ca Handle deleted/edited thread starting messages (slack). Fixes #600 (#605) 2018-11-25 10:08:57 +00:00
Wim ae32bae791 Add protocol to msg.ID in cache (#596) 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 (#593) 2018-11-15 20:43:43 +01:00
Patrick Connolly 4254ed3c63 Fix regression in skip logic (slack). (#592) 2018-11-15 19:23:46 +01:00
Patrick Connolly 09713d40ba Fix file caching issue (slack). #572 (#575) 2018-11-14 21:00:21 +01:00
Duco van Amstel e19ba5a06a Add new Slack connection and forked legacy Slack bridge (#582) 2018-11-13 20:51:19 +01:00
Duco van Amstel e9419f10d3 Restore file comments coming from Slack (#583) 2018-11-12 15:58:00 +01:00
Duco van Amstel 2f042ad915 Add more rate-limit handling (slack) (#581) 2018-11-10 22:09:41 +01:00
Wim 78401214b0 Make scopelint happy 2018-11-08 22:29:34 +01:00
Wim 1e0bb3da95 Make gocritic linter happier 2018-11-08 22:01:29 +01:00
Wim 59994da176 Act only on UserTypingEvents when enabled 2018-11-08 21:52:10 +01:00
Patrick Connolly 3d281b3316 Add ability to show when user is typing across Slack bridges (#559) 2018-11-08 20:45:40 +01:00
Duco van Amstel ea86849a58 Fix Slack edit usernames (#570) 2018-11-08 20:07:21 +01:00
Duco van Amstel d2a1dc792f Refactor and clean-up handlers. (slack) (#533) 2018-11-07 21:35:59 +01:00
David Hill 0e2522279e Clean up various stuff (#508)
* various cleanups
2018-11-07 20:36:50 +01:00
Duco van Amstel a1bf37e457 Do not join Slack channel without API access (slack) (#563) 2018-11-07 17:25:00 +01:00
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.
2018-11-07 09:14:31 +01:00
Duco van Amstel 1269be1d04 Prevent Slack API rate-limit overflow (#539) 2018-11-01 21:28:22 +01:00
Patrick Connolly d379118772 Fix bridge no longer POSTing username and avatar (slack) (#536)
* Fixed pointer/reference issue in populateUsers. [#536]

* Accepted codestyle suggestion.

* Update bridge/slack/helpers.go

Co-Authored-By: patcon <patrick.c.connolly@gmail.com>

* Update helpers.go
2018-10-24 21:12:20 +02:00