Return empty list of channels when requesting more channels at the end of cursor (#21557)

Этот коммит содержится в:
Zubair Ahmed
2022-11-02 15:10:51 +05:30
коммит произвёл GitHub
родитель b93a013934
Коммит 79e4959d02
4 изменённых файлов: 18 добавлений и 13 удалений

Просмотреть файл

@@ -1110,10 +1110,6 @@ func (s SqlChannelStore) GetChannelsWithCursor(teamId string, userId string, opt
return nil, errors.Wrapf(err, "failed to get channels with TeamId=%s and UserId=%s", teamId, userId)
}
if len(channels) == 0 {
return nil, store.NewErrNotFound("Channel", "userId="+userId)
}
return channels, nil
}