{"action":"opened","issue":{"url":"https://api.github.com/repos/42wim/matterbridge/issues/489","repository_url":"https://api.github.com/repos/42wim/matterbridge","labels_url":"https://api.github.com/repos/42wim/matterbridge/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/42wim/matterbridge/issues/489/comments","events_url":"https://api.github.com/repos/42wim/matterbridge/issues/489/events","html_url":"https://github.com/42wim/matterbridge/issues/489","id":354537218,"node_id":"MDU6SXNzdWUzNTQ1MzcyMTg=","number":489,"title":"Slack \"channel not found\" when posting between workspaces","user":{"login":"tdooner","id":129120,"node_id":"MDQ6VXNlcjEyOTEyMA==","avatar_url":"https://avatars3.githubusercontent.com/u/129120?v=4","gravatar_id":"","url":"https://api.github.com/users/tdooner","html_url":"https://github.com/tdooner","followers_url":"https://api.github.com/users/tdooner/followers","following_url":"https://api.github.com/users/tdooner/following{/other_user}","gists_url":"https://api.github.com/users/tdooner/gists{/gist_id}","starred_url":"https://api.github.com/users/tdooner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdooner/subscriptions","organizations_url":"https://api.github.com/users/tdooner/orgs","repos_url":"https://api.github.com/users/tdooner/repos","events_url":"https://api.github.com/users/tdooner/events{/privacy}","received_events_url":"https://api.github.com/users/tdooner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-28T01:36:01Z","updated_at":"2018-08-28T01:36:01Z","closed_at":null,"author_association":"NONE","body":"Hi, thanks for your work on this project!\r\n\r\n**Describe the bug**\r\nWhen setting up a simple bridge between two Slack workspaces, the message does not go through because of channel not found errors. The error does not occur in v1.11.0.\r\n\r\nWhen posting, from one of the workspaces:\r\n```\r\n[0012] ERROR gateway:      channel_not_found\r\n```\r\n\r\nWhen posting, from the other workspace:\r\n```\r\n[0244] ERROR slack:        &errors.errorString{s:\"slack.cfa: channel CCHH1G4FQ not found\"}\r\n```\r\n\r\n\r\n**To Reproduce**\r\nSimply send a message.\r\n\r\n**Expected behavior**\r\nThe message sends successfully. (Note, that the bug is not present in v1.11.0)\r\n\r\n**Screenshots/debug logs**\r\n```\r\n[0012] DEBUG slack:        == Receiving event &slack.MessageEvent{Msg:slack.Msg{Type:\"message\", Channel:\"CCH9G96KH\", User:\"U02HPQ3S4\", Text:\"foo\", Timestamp:\"1535418858.000100\", ThreadTimestamp:\"\", IsStarred:false, PinnedTo:[]string(nil\r\n), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), LastRead:\"\", Subscribed:false, UnreadCount:0, SubType:\"\", Hidden:false, DeletedTimestamp:\"\", EventTimestamp:\"1535418858.000100\", BotID:\"\", Username:\"\", Icons:(*slack.I\r\ncon)(nil), Inviter:\"\", Topic:\"\", Purpose:\"\", Name:\"\", OldName:\"\", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:\"\", Files:[]slack.File(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:\"\", Reply\r\nTo:0, Team:\"T02FEGG84\", Reactions:[]slack.ItemReaction(nil), ResponseType:\"\", ReplaceOriginal:false, DeleteOriginal:false}, SubMessage:(*slack.Msg)(nil)}\r\n[0012] DEBUG slack:        <= Sending message from tdooner on slack.openoakland to gateway\r\n[0012] DEBUG slack:        <= Message is &config.Message{Text:\"foo\", Channel:\"b-openoakland-cfa\", Username:\"tdooner\", UserID:\"U02HPQ3S4\", Avatar:\"https://secure.gravatar.com/avatar/4931287ad6a5062adb7de71de1e87dd0.jpg?s=48&d=https%3A%2F\r\n%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0006-48.png\", Account:\"slack.openoakland\", Event:\"\", Protocol:\"\", Gateway:\"\", Timestamp:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, ID:\"slack 1535418858.000100\", Extra:map[stri\r\nng][]interface {}{}}\r\n[0012] DEBUG gateway:      => Sending config.Message{Text:\"foo\", Channel:\"b-openoakland-cfa\", Username:\"tdooner\", UserID:\"U02HPQ3S4\", Avatar:\"https://secure.gravatar.com/avatar/4931287ad6a5062adb7de71de1e87dd0.jpg?s=48&d=https%3A%2F%2Fa\r\n.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0006-48.png\", Account:\"slack.openoakland\", Event:\"\", Protocol:\"\", Gateway:\"openoakland\", Timestamp:time.Time{wall:0xbed9465aad18fba0, ext:12395661365, loc:(*time.Location)(0x22857c0)}, ID:\"sl\r\nack 1535418858.000100\", Extra:map[string][]interface {}{}} from slack.openoakland (b-openoakland-cfa) to slack.cfa (b-openoakland-cfa)\r\n[0012] DEBUG slack:        => Receiving config.Message{Text:\"foo\", Channel:\"b-openoakland-cfa\", Username:\"tdooner (openoakland): \", UserID:\"U02HPQ3S4\", Avatar:\"https://secure.gravatar.com/avatar/4931287ad6a5062adb7de71de1e87dd0.jpg?s=48\r\n&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0006-48.png\", Account:\"slack.openoakland\", Event:\"\", Protocol:\"\", Gateway:\"openoakland\", Timestamp:time.Time{wall:0xbed9465aad18fba0, ext:12395661365, loc:(*time.Location)(0\r\nx22857c0)}, ID:\"\", Extra:map[string][]interface {}{}}\r\n[0012] ERROR gateway:      channel_not_found\r\n```\r\n\r\n**Environment (please complete the following information):**\r\n- OS: macOS\r\n- version: v1.11.2\r\n\r\n**Additional context**\r\n```\r\n[slack.cfa]\r\nToken = \"\"        # Override with MATTERBRIDGE_SLACK_CFA_TOKEN\r\n\r\n[slack.openoakland]\r\nToken = \"\"        # Override with MATTERBRIDGE_SLACK_OPENOAKLAND_TOKEN\r\n\r\n\r\n[general]\r\nRemoteNickFormat=\"{NICK} ({BRIDGE}): \"\r\n\r\n[[gateway]]\r\nname = \"openoakland\"\r\nenable = true\r\n[[gateway.inout]]\r\naccount = \"slack.openoakland\"\r\nchannel = \"b-openoakland-cfa\"\r\n[[gateway.inout]]\r\naccount = \"slack.cfa\"\r\nchannel = \"b-openoakland-cfa\"\r\n```"}}
{"actor":{"display_login":"tdooner"}}