diff --git a/api/conn.go b/api/conn.go index f6570587..1960813e 100644 --- a/api/conn.go +++ b/api/conn.go @@ -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) } } } diff --git a/dice/im_session.go b/dice/im_session.go index 890f952c..87324843 100644 --- a/dice/im_session.go +++ b/dice/im_session.go @@ -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 } }