// FavoriteList handles the favoriteList RPC. func (h *FavoriteHandler) FavoriteList(_ context.Context, sessionID int) ([]keybase1.Folder, error) { eng := engine.NewFavoriteList(h.G()) ctx := &engine.Context{} if err := engine.RunEngine(eng, ctx); err != nil { return nil, err } return eng.Favorites(), nil }
// FavoriteList handles the favoriteList RPC. func (h *FavoriteHandler) GetFavorites(_ context.Context, sessionID int) (keybase1.FavoritesResult, error) { eng := engine.NewFavoriteList(h.G()) ctx := &engine.Context{} if err := engine.RunEngine(eng, ctx); err != nil { return keybase1.FavoritesResult{}, err } return eng.Result(), nil }