summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge')
-rw-r--r--bridge/slack/slack.go2
-rw-r--r--bridge/slack/users_channels.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index e016a64f..37ddd853 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -156,7 +156,7 @@ func (b *Bslack) JoinChannel(channel config.ChannelInfo) error {
// try to join a channel when in legacy
if b.legacy {
- _, err := b.sc.JoinChannel(channel.Name)
+ _, _, _, err := b.sc.JoinConversation(channel.Name)
if err != nil {
switch err.Error() {
case "name_taken", "restricted_action":
diff --git a/bridge/slack/users_channels.go b/bridge/slack/users_channels.go
index 6886414e..41fd0bd8 100644
--- a/bridge/slack/users_channels.go
+++ b/bridge/slack/users_channels.go
@@ -283,7 +283,7 @@ func (b *channels) populateChannels(wait bool) {
// We only retrieve public and private channels, not IMs
// and MPIMs as those do not have a channel name.
queryParams := &slack.GetConversationsParameters{
- ExcludeArchived: "true",
+ ExcludeArchived: true,
Types: []string{"public_channel,private_channel"},
}
for {