Skip to content

Commit

Permalink
fix(slack): 修复可能遗漏的slack相关代码 (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherID authored Nov 17, 2023
1 parent d19605b commit 6d8c8b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ func ImConnectionsDel(c echo.Context) error {
i.Adapter.SetEnable(false)
myDice.ImSession.EndPoints = append(myDice.ImSession.EndPoints[:index], myDice.ImSession.EndPoints[index+1:]...)
return c.JSON(http.StatusOK, i)
case "SLACK":
i.Adapter.SetEnable(false)
myDice.ImSession.EndPoints = append(myDice.ImSession.EndPoints[:index], myDice.ImSession.EndPoints[index+1:]...)
return c.JSON(http.StatusOK, i)
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions dice/im_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,10 @@ func (ep *EndPointInfo) AdapterSetup() {
pa := ep.Adapter.(*PlatformAdapterDingTalk)
pa.Session = ep.Session
pa.EndPoint = ep
case "SLACK":
pa := ep.Adapter.(*PlatformAdapterSlack)
pa.Session = ep.Session
pa.EndPoint = ep
}
}

Expand Down

0 comments on commit 6d8c8b9

Please sign in to comment.