From f82667f3b86202dafff3a2a4ea56aec74c80316d Mon Sep 17 00:00:00 2001 From: enahum Date: Thu, 27 Oct 2016 12:24:30 -0300 Subject: PLT-4430 improve slow channel switching (#4331) * PLT-4430 improve slow channel switching * Update client side unit tests * Convert getChannelsUnread to getMyChannelMembers and address other feedback * Pull channel members on websocket reconnect --- manualtesting/manual_testing.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'manualtesting') diff --git a/manualtesting/manual_testing.go b/manualtesting/manual_testing.go index 77a5b89c8..9a2d557bc 100644 --- a/manualtesting/manual_testing.go +++ b/manualtesting/manual_testing.go @@ -159,13 +159,13 @@ func getChannelID(channelname string, teamid string, userid string) (id string, return "", false } - data := result.Data.(*model.ChannelList) + data := result.Data.(model.ChannelList) - for _, channel := range data.Channels { + for _, channel := range data { if channel.Name == channelname { return channel.Id, true } } - l4g.Debug(utils.T("manaultesting.get_channel_id.no_found.debug"), channelname, strconv.Itoa(len(data.Channels))) + l4g.Debug(utils.T("manaultesting.get_channel_id.no_found.debug"), channelname, strconv.Itoa(len(data))) return "", false } -- cgit v1.2.3-1-g7c22