Closed Aketzu closed 6 years ago
With above changes shared channels seem to have at least basic functions working.
TODO: server_commands Cmd{Invite,Kick,Join,List,Part,Topic}
Hm, didn't know shared channels even existed :) Thanks for digging around! If you open a PR on https://github.com/42wim/mm-go-irckit I'll merge your work
Going to close this, your PR has been merged, thanks again
@Aketzu are you using matterircd with this patch ? I'm experiencing some huge memory changes, is this something you see also ?
Immediately after joining a multi-team shared channel matterircd crashes with null pointer error
Version is latest master but I have a few local message formatting changes so the faulting line is 419 https://github.com/42wim/matterircd/blob/50a0ba8607ceaba2082ac579e6370f7e8eb03094/vendor/github.com/42wim/mm-go-irckit/slackuser.go#L419
Hits the same thing after reconnection but somehow succeeds on third try. Then somewhat randomly crashes on this every now and then. Additionally, all messages sent to shared conversation are interpreted as private chats by irssi since they point to nonexistent channel. First message is normal channel and latter shared conversation.
I guess root cause is matterircd not finding shared channels when listing slack channels. mm-go-irckit addSlackUsersToChannels uses GetGroups+GetChannels whereas Slack API nowadays recommends using GetConversations (https://api.slack.com/docs/conversations-api). Additionally, Slack shared channel guide notes "Actually, we'd prefer you use conversations.* for all channel-like operations" so joins/leaves/topics etc. should be changed to conversations as well.