From df8feddb460b2d29b8d53c3bdefa32ffcc4d42f4 Mon Sep 17 00:00:00 2001 From: Scott Lee Davis Date: Sat, 15 Jun 2019 18:03:30 -0700 Subject: [PATCH] remove UnregisterCommand. Fixes Issue #121 --- server/activate.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/server/activate.go b/server/activate.go index 47205ef..94218a3 100755 --- a/server/activate.go +++ b/server/activate.go @@ -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