hunk.code_window: 		} else if rows, _ := sqlResult.RowsAffected(); rows == 0 {
   			result.Err = model.NewLocAppError("SqlEmojiStore.Delete", "store.sql_emoji.delete.no_results", nil, "id="+id+", err="+err.Error())
   		}
   		storeChannel <- result
   		close(storeChannel)
   	}()
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit: 		emojiCache.Remove(id)
  
hunk.file_path: store/sql_emoji_store.go
hunk.type: add
file: // Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  package api4
  
  import (
  	"testing"
  
  	"github.com/mattermost/platform/utils"
  )
  
  func TestGetWebrtcToken(t *testing.T) {
  	if testing.Short() {
  		t.SkipNow()
  	}
  
  	th := Setup().InitBasic().InitSystemAdmin()
  	defer TearDown()
  	Client := th.Client
  
  	enableWebrtc := *utils.Cfg.WebrtcSettings.Enable
  	defer func() {
  		*utils.Cfg.WebrtcSettings.Enable = enableWebrtc
  	}()
  	*utils.Cfg.WebrtcSettings.Enable = false
  
  	_, resp := Client.GetWebrtcToken()
  	CheckNotImplementedStatus(t, resp)
  
  	Client.Logout()
  	_, resp = Client.GetWebrtcToken()
  	CheckUnauthorizedStatus(t, resp)
  }
  