Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
remove UnregisterCommand. Fixes Issue #121
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleedavis committed Jun 16, 2019
1 parent 2aeb294 commit df8fedd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions server/activate.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,7 @@ func (p *Plugin) OnActivate() error {

func (p *Plugin) OnDeactivate() error {

teams, err := p.API.GetTeams()
if err != nil {
return errors.Wrap(err, "failed to query teams OnDeactivate")
}

p.Stop()

for _, team := range teams {
if cErr := p.API.UnregisterCommand(team.Id, CommandTrigger); cErr != nil {
return errors.Wrap(cErr, "failed to unregister command")
}
}

p.activated = false

return nil
Expand Down

0 comments on commit df8fedd

Please sign in to comment.